Skip to content

Commit

Permalink
CP-52 Add link to blockchains
Browse files Browse the repository at this point in the history
  • Loading branch information
hlushko committed Oct 4, 2018
1 parent a666529 commit bd2c927
Show file tree
Hide file tree
Showing 7 changed files with 60 additions and 45 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# zavz9t.github.io
# Zavz9t tools

Batch of tools developed and supported by zavz9t
13 changes: 13 additions & 0 deletions chain-post/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Chain Post

Tool to publish your posts on several blockchains at one click.

Supported blockchains:
- https://golos.io/
- https://steemit.com/
- https://whaleshares.io/
- https://deals.weku.io/
- https://serey.io/
- https://vox.community/

Link: https://zavz9t.github.io/chain-post/
2 changes: 1 addition & 1 deletion chain-post/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ body {

.btn-container {
position: fixed;
bottom: 20px;
bottom: 30px;
right: 20px;
z-index: 5;
}
Expand Down
2 changes: 1 addition & 1 deletion chain-post/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,6 @@
<script src="js/lib/jquery.min.js" integrity="sha384-tsQFqpEReu7ZLhBV2VZlAu7zcOV+rXbYlF2cqB8txI/8aZajjp4Bqd+V6D5IgvKT" crossorigin="anonymous"></script>
<script src="js/lib/bootstrap.bundle.min.js" integrity="sha384-pjaaA8dDz/5BgdFUPX6M/9SUZv4d12SUPF0axWc+VRZkx5xU3daN+lYb49+Ax+Tl" crossorigin="anonymous"></script>

<script src="js/main.min.js?t=1538606559"></script>
<script src="js/main.min.js?t=1538606561"></script>
</body>
</html>
40 changes: 39 additions & 1 deletion chain-post/js/constant.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,45 @@ I decided to change this and discovered a new world that surrounds me! Today I s
, loadingClassName: `loading`
}
, htmlPieces = {
publishSuccess: `
adapterSection: `
<hr />
<h3 class="mx-auto" style="%3$s"><a href="%4$s" target="_blank" rel="noopener noreferrer">%2$s</a> Account</h3>
<div class="form-group">
<input type="text" class="form-control" id="%1$s-tags" placeholder="Optional: Specify tags for %2$s (will replace previous)" />
</div>
<div class="form-group">
<select id="%1$s-accounts-list" class="form-control accounts-list">
<option value="" selected>Choose or fill new one 👇</option>
</select>
</div>
<div class="form-row">
<div class="form-group col-md-4">
<div class="input-group">
<div class="input-group-prepend">
<div class="input-group-text">@</div>
</div>
<input type="text" class="form-control" id="%1$s-username" placeholder="Enter your %2$s username">
<div class="invalid-feedback">
Username cannot be blank.
</div>
</div>
</div>
<div class="form-group col-md-6">
<input type="password" class="form-control" id="%1$s-wif" placeholder="WIF (Posting key)" />
<div class="invalid-feedback">
WIF is empty or has invalid value.
</div>
</div>
<div class="form-group col-md-2">
<button id="%1$s-add-account" class="btn btn-add-account btn-outline-success">Add to list 👆</button>
</div>
</div>
`
, publishSuccess: `
<div class="alert alert-success alert-dismissible fade show" role="alert">
<img src="img/logo/%1$s-16.png" alt="%1$s"> <a href="%2$s" target="_blank" rel="noopener noreferrer">%2$s</a>
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
Expand Down
43 changes: 3 additions & 40 deletions chain-post/js/doc.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,44 +20,6 @@ function addSections(sections) {
}
let containerId = `form`
, container = jQuery(`#` + containerId)
, htmlSection = `
<hr />
<h3 class="mx-auto" style="%3$s">%2$s Account</h3>
<div class="form-group">
<input type="text" class="form-control" id="%1$s-tags" placeholder="Optional: Specify tags for %2$s (will replace previous)" />
</div>
<div class="form-group">
<select id="%1$s-accounts-list" class="form-control accounts-list">
<option value="" selected>Choose or fill new one 👇</option>
</select>
</div>
<div class="form-row">
<div class="form-group col-md-4">
<div class="input-group">
<div class="input-group-prepend">
<div class="input-group-text">@</div>
</div>
<input type="text" class="form-control" id="%1$s-username" placeholder="Enter your %2$s username">
<div class="invalid-feedback">
Username cannot be blank.
</div>
</div>
</div>
<div class="form-group col-md-6">
<input type="password" class="form-control" id="%1$s-wif" placeholder="WIF (Posting key)" />
<div class="invalid-feedback">
WIF is empty or has invalid value.
</div>
</div>
<div class="form-group col-md-2">
<button id="%1$s-add-account" class="btn btn-add-account btn-outline-success">Add to list 👆</button>
</div>
</div>
`;
;
if (!container || container.length < 1) {
console.log(sprintf(`%s: Container by id "%s" was not found.`, funcName, containerId));
Expand All @@ -66,10 +28,11 @@ function addSections(sections) {
}
for (let k in sections) {
let html = sprintf(
htmlSection,
constant.htmlPieces.adapterSection,
k,
sections[k][`title`],
sections[k][`title_style`]
sections[k][`title_style`],
constant.adapterToHost[k]
)
, appendKey = `append_html`
;
Expand Down
2 changes: 1 addition & 1 deletion chain-post/js/main.min.js

Large diffs are not rendered by default.

0 comments on commit bd2c927

Please sign in to comment.