180 lines
No EOL
6.1 KiB
HTML
180 lines
No EOL
6.1 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<!--Import Google Icon Font-->
|
|
<link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
|
<!--Import materialize.css-->
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.6/css/materialize.min.css" media="screen,projection" />
|
|
|
|
<!--Let browser know website is optimized for mobile-->
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"/>
|
|
</head>
|
|
|
|
<body>
|
|
<nav class="light-blueXXX lighten-1XXX" role="navigation" id="mc-nav">
|
|
<div class="nav-wrapper container"><a id="logo-container" href="#" class="brand-logo">Mc Lighting</a>
|
|
<ul class="right hide-on-med-and-down">
|
|
<li><a href="#" class="mc-navlink" data-pane="pane1">Wheel</a></li>
|
|
<li><a href="#" class="mc-navlink" data-pane="pane2">Modes</a></li>
|
|
</ul>
|
|
|
|
<ul id="nav-mobile" class="side-nav">
|
|
<li><a href="#" class="mc-navlink" data-pane="pane1">Wheel</a></li>
|
|
<li><a href="#" class="mc-navlink" data-pane="pane2">Modes</a></li>
|
|
|
|
</ul>
|
|
<a href="#" data-activates="nav-mobile" class="button-collapse"><i class="material-icons">menu</i></a>
|
|
</div>
|
|
</nav>
|
|
|
|
<div class="container mc_pane" id="pane0">
|
|
<div class="section">
|
|
<div class="row" id="mc-wsloader">
|
|
<div class="col">
|
|
<div class="preloader-wrapper active">
|
|
<div class="spinner-layer spinner-red-only">
|
|
<div class="circle-clipper left">
|
|
<div class="circle"></div>
|
|
</div><div class="gap-patch">
|
|
<div class="circle"></div>
|
|
</div><div class="circle-clipper right">
|
|
<div class="circle"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row hide" id="mc-wserror">
|
|
<div class="col">
|
|
<div>Fehler beim Herstellen der WebSocket-Verbindung.</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="container mc_pane hide" id="pane1">
|
|
<div class="section">
|
|
<div class="row">
|
|
<div class="col s12 m6">
|
|
<div style="height: 330px; width: 330px;">
|
|
<canvas id="myCanvas" width="330" height="330" style="-webkit-user-select: none;-webkit-tap-highlight-color: rgba(0,0,0,0);-moz-user-select:none;"></canvas>
|
|
</div>
|
|
</div>
|
|
<div class="col s12 m6">
|
|
<div class="card-panel" id="status">
|
|
<div id="status_pos">pick a color</div>
|
|
<div id="status_color"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="container mc_pane hide" id="pane2">
|
|
<div class="section">
|
|
<div class="row">
|
|
<div class="col s12 m6 l3 btn_grid">
|
|
<button class="btn waves-effect waves-light btn_mode" name="action" data-mode="off">Off
|
|
<i class="material-icons right">send</i>
|
|
</button>
|
|
</div>
|
|
|
|
<div class="col s12 m6 l3 btn_grid">
|
|
<a class="btn waves-effect waves-light btn_mode" name="action" data-mode="all">All
|
|
<i class="material-icons right">send</i>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="col s12 m6 l3 btn_grid">
|
|
<a class="btn waves-effect waves-light btn_mode" name="action" data-mode="wipe">Wipe
|
|
<i class="material-icons right">send</i>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="col s12 m6 l3 btn_grid">
|
|
<a class="btn waves-effect waves-light btn_mode" name="action" data-mode="rainbow">Rainbow
|
|
<i class="material-icons right">send</i>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="col s12 m6 l3 btn_grid">
|
|
<a class="btn waves-effect waves-light btn_mode" name="action" data-mode="rainbowCycle">Rainbow cycle
|
|
<i class="material-icons right">send</i>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="col s12 m6 l3 btn_grid">
|
|
<a class="btn waves-effect waves-light btn_mode" name="action" data-mode="theaterchase">Theaterchase
|
|
<i class="material-icons right">send</i>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="col s12 m6 l3 btn_grid">
|
|
<a class="btn waves-effect waves-light btn_mode" name="action" data-mode="theaterchaseRainbow">Theaterchase rainbow
|
|
<i class="material-icons right">send</i>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="col s12 m6 l3 btn_grid">
|
|
<a class="btn waves-effect waves-light btn_mode" name="action" data-mode="tv">TV
|
|
<i class="material-icons right">send</i>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<form class="col s12">
|
|
<div class="row">
|
|
<div class="input-field col s12 l4">
|
|
<label for="txt_red">Red</label><br/>
|
|
<p class="range-field"><input type="range" id="rng_red" min="0" max="255" class="update_changes" /></p>
|
|
</div>
|
|
<div class="input-field col s12 l4">
|
|
<label for="txt_green">Green</label><br/>
|
|
<p class="range-field"><input type="range" id="rng_green" min="0" max="255" class="update_changes" /></p>
|
|
</div>
|
|
<div class="input-field col s12 l4">
|
|
<label for="txt_blue">Blue</label><br/>
|
|
<p class="range-field"><input type="range" id="rng_blue" min="0" max="255" class="update_changes" /></p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="input-field col s12">
|
|
<label for="txt_delay">Delay</label><br/>
|
|
<p class="range-field"><input type="range" id="rng_delay" min="0" max="500" value="50" class="update_changes" /></p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="input-field col s12">
|
|
<label for="txt_delay">Brightness</label><br/>
|
|
<p class="range-field"><input type="range" id="rng_brightness" min="0" max="255" value="255" /></p>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<footer class="page-footer">
|
|
<div class="footer-copyright">
|
|
<div class="container">
|
|
© 2016 Copyright Tobias Blum
|
|
<a class="grey-text text-lighten-4 right" href="#!">More Links</a>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
|
|
<style type="text/css">
|
|
.btn_grid {
|
|
margin: 7px 0;
|
|
}
|
|
</style>
|
|
|
|
<!--Import jQuery before materialize.js-->
|
|
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.6/js/materialize.min.js"></script>
|
|
<script src="js/script.js"></script>
|
|
</body>
|
|
</html> |