Merge pull request #653 from nrpatten/issue-444-theserapher
Issue 444 theserapher
This commit is contained in:
commit
3666a4367b
@ -1,6 +1,7 @@
|
|||||||
/* Custom checkboxes */
|
/* Custom checkboxes */
|
||||||
input[type=checkbox] {
|
input[type=checkbox] {
|
||||||
display:none;
|
position: absolute;
|
||||||
|
opacity: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type=checkbox] + label
|
input[type=checkbox] + label
|
||||||
@ -19,3 +20,79 @@ input[type=checkbox]:checked + label
|
|||||||
width: 16px;
|
width: 16px;
|
||||||
display:inline-block;
|
display:inline-block;
|
||||||
padding: 0 0 0 0px;
|
padding: 0 0 0 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Test toggle switch Begin */
|
||||||
|
|
||||||
|
:root input[type="checkbox"] {
|
||||||
|
position: absolute;
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
:root input[type="checkbox"].ios-switch + div {
|
||||||
|
display: inline-block;
|
||||||
|
vertical-align: middle;
|
||||||
|
width: 3em; height: 1em;
|
||||||
|
border: 1px solid rgba(0,0,0,.3);
|
||||||
|
border-radius: 999px;
|
||||||
|
margin: 0 .5em;
|
||||||
|
background: white;
|
||||||
|
background-image: linear-gradient(rgba(0,0,0,.1), transparent),
|
||||||
|
linear-gradient(90deg, hsl(210, 90%, 60%) 50%, transparent 50%);
|
||||||
|
background-size: 200% 100%;
|
||||||
|
background-position: 100% 0;
|
||||||
|
background-origin: border-box;
|
||||||
|
background-clip: border-box;
|
||||||
|
overflow: hidden;
|
||||||
|
transition-duration: .4s;
|
||||||
|
transition-property: padding, width, background-position, text-indent;
|
||||||
|
box-shadow: 0 .1em .1em rgba(0,0,0,.2) inset,
|
||||||
|
0 .45em 0 .1em rgba(0,0,0,.05) inset;
|
||||||
|
font-size: 150%;
|
||||||
|
}
|
||||||
|
|
||||||
|
:root input[type="checkbox"].ios-switch:checked + div {
|
||||||
|
padding-left: 2em; width: 1em;
|
||||||
|
background-position: 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
:root input[type="checkbox"].ios-switch + div:before {
|
||||||
|
content: 'On';
|
||||||
|
float: left;
|
||||||
|
width: 1.65em; height: 1.65em;
|
||||||
|
margin: -.1em;
|
||||||
|
border: 1px solid rgba(0,0,0,.35);
|
||||||
|
border-radius: inherit;
|
||||||
|
background: white;
|
||||||
|
background-image: linear-gradient(rgba(0,0,0,.2), transparent);
|
||||||
|
box-shadow: 0 .1em .1em .1em hsla(0,0%,100%,.8) inset,
|
||||||
|
0 0 .5em rgba(0,0,0,.3);
|
||||||
|
color: white;
|
||||||
|
text-shadow: 0 -1px 1px rgba(0,0,0,.3);
|
||||||
|
text-indent: -2.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
:root input[type="checkbox"].ios-switch:active + div:before {
|
||||||
|
background-color: #eee;
|
||||||
|
}
|
||||||
|
|
||||||
|
:root input[type="checkbox"].ios-switch:focus + div {
|
||||||
|
box-shadow: 0 .1em .1em rgba(0,0,0,.2) inset,
|
||||||
|
0 .45em 0 .1em rgba(0,0,0,.05) inset,
|
||||||
|
0 0 .4em 1px rgba(255,0,0,.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
:root input[type="checkbox"].ios-switch + div:before,
|
||||||
|
:root input[type="checkbox"].ios-switch + div:after {
|
||||||
|
font: bold 60%/1.9 sans-serif;
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
|
||||||
|
:root input[type="checkbox"].ios-switch + div:after {
|
||||||
|
content: 'Off';
|
||||||
|
float: left;
|
||||||
|
text-indent: .5em;
|
||||||
|
color: rgba(0,0,0,.45);
|
||||||
|
text-shadow: none;
|
||||||
|
|
||||||
|
}
|
||||||
|
|||||||
@ -39,10 +39,12 @@
|
|||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<label>Anonymous Account</label>
|
<label>Anonymous Account</label>
|
||||||
Hide username on website others. Admins can still get your user information.
|
Hide username on website from others. Admins can still get your user information.
|
||||||
<input type="hidden" name="is_anonymous" value="0" />
|
<label class="checkbox" for="is_anonymous">
|
||||||
<input type="checkbox" name="is_anonymous" value="1" id="is_anonymous" {if $GLOBAL.userdata.is_anonymous}checked{/if} />
|
<input class="ios-switch" type="hidden" name="is_anonymous" value="0" />
|
||||||
<label class="checkbox" for="is_anonymous"></label>
|
<input class="ios-switch" type="checkbox" name="is_anonymous" value="1" id="is_anonymous" {if $GLOBAL.userdata.is_anonymous}checked{/if} />
|
||||||
|
<div class="switch"></div>
|
||||||
|
</label>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<label>4 digit PIN</label>
|
<label>4 digit PIN</label>
|
||||||
|
|||||||
@ -14,34 +14,42 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td align="left">IDLE Worker</td>
|
<td align="left">IDLE Worker</td>
|
||||||
<td align="center">
|
<td>
|
||||||
|
<label for="data[idle_worker]">
|
||||||
<input type="hidden" name="data[idle_worker]" value="0" />
|
<input type="hidden" name="data[idle_worker]" value="0" />
|
||||||
<input type="checkbox" name="data[idle_worker]" id="data[idle_worker]" value="1"{nocache}{if $SETTINGS['idle_worker']}checked{/if}{/nocache} />
|
<input type="checkbox" class="ios-switch" name="data[idle_worker]" id="data[idle_worker]" value="1"{nocache}{if $SETTINGS['idle_worker']}checked{/if}{/nocache} />
|
||||||
<label for="data[idle_worker]"></label>
|
<div class="switch"></div>
|
||||||
|
</label>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td align="left">New Blocks</td>
|
<td align="left">New Blocks</td>
|
||||||
<td align="center">
|
<td>
|
||||||
|
<label for="data[new_block]">
|
||||||
<input type="hidden" name="data[new_block]" value="0" />
|
<input type="hidden" name="data[new_block]" value="0" />
|
||||||
<input type="checkbox" name="data[new_block]" id="data[new_block]" value="1"{nocache}{if $SETTINGS['new_block']}checked{/if}{/nocache} />
|
<input type="checkbox" class="ios-switch" name="data[new_block]" id="data[new_block]" value="1"{nocache}{if $SETTINGS['new_block']}checked{/if}{/nocache} />
|
||||||
<label for="data[new_block]"></label>
|
<div class="switch"></div>
|
||||||
|
</label>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td align="left">Auto Payout</td>
|
<td align="left">Auto Payout</td>
|
||||||
<td align="center">
|
<td>
|
||||||
|
<label for="data[auto_payout]">
|
||||||
<input type="hidden" name="data[auto_payout]" value="0" />
|
<input type="hidden" name="data[auto_payout]" value="0" />
|
||||||
<input type="checkbox" name="data[auto_payout]" id="data[auto_payout]" value="1"{nocache}{if $SETTINGS['auto_payout']}checked{/if}{/nocache} />
|
<input type="checkbox" class="ios-switch" name="data[auto_payout]" id="data[auto_payout]" value="1"{nocache}{if $SETTINGS['auto_payout']}checked{/if}{/nocache} />
|
||||||
<label for="data[auto_payout]"></label>
|
<div class="switch"></div>
|
||||||
|
</label>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td align="left">Manual Payout</td>
|
<td align="left">Manual Payout</td>
|
||||||
<td align="center">
|
<td>
|
||||||
|
<label for="data[manual_payout]">
|
||||||
<input type="hidden" name="data[manual_payout]" value="0" />
|
<input type="hidden" name="data[manual_payout]" value="0" />
|
||||||
<input type="checkbox" name="data[manual_payout]" id="data[manual_payout]" value="1"{nocache}{if $SETTINGS['manual_payout']}checked{/if}{/nocache} />
|
<input type="checkbox" class="ios-switch" name="data[manual_payout]" id="data[manual_payout]" value="1"{nocache}{if $SETTINGS['manual_payout']}checked{/if}{/nocache} />
|
||||||
<label for="data[manual_payout]"></label>
|
<div class="switch"></div>
|
||||||
|
</label>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@ -49,9 +49,11 @@
|
|||||||
<td align="left"><input type="text" name="data[{$WORKERS[worker].id}][password]" value="{$WORKERS[worker].password|escape}" size="10" required></td>
|
<td align="left"><input type="text" name="data[{$WORKERS[worker].id}][password]" value="{$WORKERS[worker].password|escape}" size="10" required></td>
|
||||||
<td align="center"><img src="{$PATH}/images/{if $WORKERS[worker].hashrate > 0}icn_alert_success{else}icn_alert_error{/if}.png" /></td>
|
<td align="center"><img src="{$PATH}/images/{if $WORKERS[worker].hashrate > 0}icn_alert_success{else}icn_alert_error{/if}.png" /></td>
|
||||||
{if $GLOBAL.config.disable_notifications != 1}
|
{if $GLOBAL.config.disable_notifications != 1}
|
||||||
<td align="center">
|
<td>
|
||||||
<input type="checkbox" name="data[{$WORKERS[worker].id}][monitor]" value="1" id="data[{$WORKERS[worker].id}][monitor]" {if $WORKERS[worker].monitor}checked{/if} />
|
<label for="data[{$WORKERS[worker].id}][monitor]">
|
||||||
<label for="data[{$WORKERS[worker].id}][monitor]"></label>
|
<input type="checkbox" class="ios-switch" name="data[{$WORKERS[worker].id}][monitor]" value="1" id="data[{$WORKERS[worker].id}][monitor]" {if $WORKERS[worker].monitor}checked{/if} />
|
||||||
|
<div class="switch"></div>
|
||||||
|
</label>
|
||||||
</td>
|
</td>
|
||||||
{/if}
|
{/if}
|
||||||
<td align="right">{$WORKERS[worker].hashrate|number_format}</td>
|
<td align="right">{$WORKERS[worker].hashrate|number_format}</td>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user