[UPDATE] mute blocknotify
This commit is contained in:
parent
ff677348be
commit
e5ef906494
@ -37,6 +37,9 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="panel-footer text-right">
|
||||||
|
Blocknotify Sound <a href="#" id="mute_false" onclick="myMute(this, false);">on</a> / <a href="#" id="mute_true" onclick="myMute(this, true);">off</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
@ -1,6 +1,19 @@
|
|||||||
{if $smarty.session.AUTHENTICATED|default}
|
{if $smarty.session.AUTHENTICATED|default}
|
||||||
<script src="{$PATH}/js/plugins/date.format.js"></script>
|
<script src="{$PATH}/js/plugins/date.format.js"></script>
|
||||||
<script src="{$PATH}/js/plugins/soundjs-0.5.2.min.js"></script>
|
<script src="{$PATH}/js/plugins/soundjs-0.5.2.min.js"></script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
function myMute(obj,flag) {
|
||||||
|
if(flag!==createjs.Sound.getMute()) {
|
||||||
|
createjs.Sound.setMute(flag);
|
||||||
|
obj.style.textDecoration="underline";
|
||||||
|
obj.style.color="#FFFF00";
|
||||||
|
flag=!flag;
|
||||||
|
obj=document.getElementById("mute_"+flag.toString());
|
||||||
|
obj.style.textDecoration="none";
|
||||||
|
obj.style.color="#FF0000";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-12">
|
<div class="col-lg-12">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user