mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-01-27 15:14:40 +00:00
fix network promoted message set up
This commit is contained in:
parent
22b3ba93ce
commit
0d2cfc5d83
@ -652,6 +652,7 @@ textarea.splited-post {
|
|||||||
background-color: #F2FFBA;
|
background-color: #F2FFBA;
|
||||||
border: solid 1px #B4C669;
|
border: solid 1px #B4C669;
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
|
line-height: normal;
|
||||||
margin: 4px 0;
|
margin: 4px 0;
|
||||||
padding: 4px;
|
padding: 4px;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
@ -1294,10 +1295,7 @@ ol.toptrends-list {
|
|||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
list-style: circle;
|
list-style: circle;
|
||||||
}
|
}
|
||||||
.network.singleBlock button
|
|
||||||
{
|
|
||||||
padding: 3px 10px;
|
|
||||||
}
|
|
||||||
.network.singleBlock ul li > span
|
.network.singleBlock ul li > span
|
||||||
{
|
{
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
@ -1335,10 +1333,9 @@ ol.toptrends-list {
|
|||||||
{
|
{
|
||||||
border: 2px solid green;
|
border: 2px solid green;
|
||||||
}
|
}
|
||||||
.character-limit
|
|
||||||
{
|
.network .post-area-extras {
|
||||||
float: right;
|
margin-right: 20px;
|
||||||
margin-right: 18px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*************************************
|
/*************************************
|
||||||
|
@ -244,17 +244,20 @@ function getSpamMsg() {
|
|||||||
}, {});
|
}, {});
|
||||||
}
|
}
|
||||||
|
|
||||||
function setSpamMsg() {
|
function setSpamMsg(event) {
|
||||||
var $postArea = $(".spam-msg");
|
event.stopPropagation();
|
||||||
var $localUsersList = $("select.local-usernames.spam-user");
|
event.preventDefault();
|
||||||
var params = [$localUsersList.val(), $postArea.val()]
|
|
||||||
|
var btnUpdate = $(event.target);
|
||||||
|
$.MAL.disableButton(btnUpdate);
|
||||||
|
|
||||||
|
var params = [$("select.local-usernames.spam-user").val(),
|
||||||
|
btnUpdate.closest('.post-area-new').find('textarea.spam-msg').val().trim()];
|
||||||
|
|
||||||
twisterRpc("setspammsg", params,
|
twisterRpc("setspammsg", params,
|
||||||
function(args, ret) {
|
function(args, ret) {console.log("setspammsg updated");}, {},
|
||||||
console.log("setspammsg updated");
|
function(args, ret) {console.log("setspammsg error");}, {}
|
||||||
}, {},
|
);
|
||||||
function(args, ret) {
|
|
||||||
console.log("setspammsg error");
|
|
||||||
}, {});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function exitDaemon() {
|
function exitDaemon() {
|
||||||
@ -286,7 +289,9 @@ function interfaceNetworkHandlers() {
|
|||||||
$( ".add-dns").bind( "click", addDNSClick );
|
$( ".add-dns").bind( "click", addDNSClick );
|
||||||
$( "select.genblock").change( setGenerate );
|
$( "select.genblock").change( setGenerate );
|
||||||
$( ".genproclimit").change( setGenerate );
|
$( ".genproclimit").change( setGenerate );
|
||||||
$( ".update-spam-msg").bind( "click", setSpamMsg );
|
$('.network .post-area-new').off('click').on('click',
|
||||||
|
function (e) {e.stopPropagation(); $(this).addClass('open'); usePostSpliting = false;});
|
||||||
|
$('.post-submit.update-spam-msg').off('click').on('click', setSpamMsg);
|
||||||
$( ".terminate-daemon").bind( "click", exitDaemon )
|
$( ".terminate-daemon").bind( "click", exitDaemon )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
37
network.html
37
network.html
@ -27,8 +27,8 @@
|
|||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<!-- MENU SUPERIOR INIT -->
|
<!-- MENU SUPERIOR INIT -->
|
||||||
<nav class="userMenu">
|
<nav class="userMenu">
|
||||||
<ul>
|
<ul>
|
||||||
<li class="userMenu-home"><a href="home.html"><span class="selectable_theme theme_original label">Home</span></a></li>
|
<li class="userMenu-home"><a href="home.html"><span class="selectable_theme theme_original label">Home</span></a></li>
|
||||||
@ -75,7 +75,7 @@
|
|||||||
<button class="terminate-daemon">Exit</button>
|
<button class="terminate-daemon">Exit</button>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<h3> Detailed information </h3>
|
<h3> Detailed information </h3>
|
||||||
<ul>
|
<ul>
|
||||||
<li class="connections">
|
<li class="connections">
|
||||||
@ -191,20 +191,25 @@
|
|||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<label> Post to promote: </label>
|
<label> Post to promote: </label>
|
||||||
<textarea class="spam-msg" placeholder="Type message here"></textarea>
|
<div class="post-area">
|
||||||
|
<form class="post-area-new open">
|
||||||
|
<textarea class="spam-msg" placeholder="Type message here"></textarea>
|
||||||
|
<div class="post-area-extras">
|
||||||
|
<span class="post-area-remaining">140</span>
|
||||||
|
<button class="undo-unicode disabled" disabled="true">undo</button>
|
||||||
|
<button class="post-submit update-spam-msg disabled" disabled="true">Update</button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<label> Send post with username </label>
|
<label> Send post with username </label>
|
||||||
<select class="local-usernames spam-user">
|
<select class="local-usernames spam-user">
|
||||||
<option value="nobody">nobody</option>
|
<option value="nobody">nobody</option>
|
||||||
</select>
|
</select>
|
||||||
<div class="character-limit">
|
|
||||||
<span class="post-area-remaining">140</span>
|
|
||||||
<button class="update-spam-msg enabled">Update</button>
|
|
||||||
</div>
|
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<h3> Block generation status</h3>
|
<h3> Block generation status</h3>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
@ -218,6 +223,20 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div id="templates" style="display:none;">
|
||||||
|
<div id="post-preview-template">
|
||||||
|
<div id="post-preview" class="post-text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- template for user links in message (open profile modal) -->
|
||||||
|
<a id="msg-user-link-template" class="open-profile-modal"></a>
|
||||||
|
<!-- template for user links in message (open profile modal) -->
|
||||||
|
<a id="external-page-link-template" rel="nofollow" target="_blank"></a>
|
||||||
|
<!-- template for user links in message (open profile modal) -->
|
||||||
|
<a id="hashtag-link-template" class="open-hashtag-modal"></a>
|
||||||
|
</div>
|
||||||
|
|
||||||
<audio id="player"></audio>
|
<audio id="player"></audio>
|
||||||
<audio id="playerSec"></audio>
|
<audio id="playerSec"></audio>
|
||||||
</body>
|
</body>
|
||||||
|
@ -781,6 +781,7 @@ textarea.splited-post {
|
|||||||
background-color: #F2FFBA;
|
background-color: #F2FFBA;
|
||||||
border: solid 1px #B4C669;
|
border: solid 1px #B4C669;
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
|
line-height: normal;
|
||||||
margin: 4px 0;
|
margin: 4px 0;
|
||||||
padding: 4px;
|
padding: 4px;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
@ -1659,10 +1660,7 @@ textarea.splited-post {
|
|||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
list-style: circle;
|
list-style: circle;
|
||||||
}
|
}
|
||||||
.network.singleBlock button
|
|
||||||
{
|
|
||||||
padding: 3px 10px;
|
|
||||||
}
|
|
||||||
.network.singleBlock ul li > span
|
.network.singleBlock ul li > span
|
||||||
{
|
{
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
@ -1699,10 +1697,9 @@ textarea.splited-post {
|
|||||||
{
|
{
|
||||||
border: 2px solid #b2d67b;
|
border: 2px solid #b2d67b;
|
||||||
}
|
}
|
||||||
.character-limit
|
|
||||||
{
|
.network .post-area-extras {
|
||||||
float: right;
|
margin-right: 20px;
|
||||||
margin-right: 18px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*************************************
|
/*************************************
|
||||||
|
@ -1501,10 +1501,8 @@ span.connection-status.connected:before {
|
|||||||
background: #B4C669;
|
background: #B4C669;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* line 61, ../sass/_network.sass */
|
.network .post-area-extras {
|
||||||
.character-limit {
|
margin-right: 20px;
|
||||||
float: right;
|
|
||||||
margin-right: 18px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* line 65, ../sass/_network.sass */
|
/* line 65, ../sass/_network.sass */
|
||||||
@ -2275,6 +2273,7 @@ textarea.splited-post {
|
|||||||
background-color: #FCFFF3;
|
background-color: #FCFFF3;
|
||||||
border: solid 1px #ECEFE3;
|
border: solid 1px #ECEFE3;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
|
line-height: normal;
|
||||||
margin: 4px 0;
|
margin: 4px 0;
|
||||||
padding: 4px;
|
padding: 4px;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
|
@ -47,7 +47,7 @@ span.connection-status
|
|||||||
line-height: 1em
|
line-height: 1em
|
||||||
font-weight: 500
|
font-weight: 500
|
||||||
font-size: 1em
|
font-size: 1em
|
||||||
&:before
|
&:before
|
||||||
content: ""
|
content: ""
|
||||||
display: inline-block
|
display: inline-block
|
||||||
height: .8em
|
height: .8em
|
||||||
@ -58,9 +58,8 @@ span.connection-status
|
|||||||
&.connected:before
|
&.connected:before
|
||||||
background: $main-color-color
|
background: $main-color-color
|
||||||
|
|
||||||
.character-limit
|
.network .post-area-extras
|
||||||
float: right
|
margin-right: 20px
|
||||||
margin-right: 18px
|
|
||||||
|
|
||||||
.connections span, .known-peers, .dht-nodes, .blocks, .last-block-time, .mining-difficulty
|
.connections span, .known-peers, .dht-nodes, .blocks, .last-block-time, .mining-difficulty
|
||||||
color: #333
|
color: #333
|
||||||
|
@ -358,6 +358,7 @@ ul.userMenu-search-profiles
|
|||||||
background-color: #FCFFF3
|
background-color: #FCFFF3
|
||||||
border: solid 1px #ECEFE3
|
border: solid 1px #ECEFE3
|
||||||
font-size: 12px
|
font-size: 12px
|
||||||
|
line-height: normal
|
||||||
margin: 4px 0
|
margin: 4px 0
|
||||||
padding: 4px
|
padding: 4px
|
||||||
word-wrap: break-word
|
word-wrap: break-word
|
||||||
|
Loading…
x
Reference in New Issue
Block a user