mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fixing validator issues
This commit is contained in:
@@ -118,7 +118,7 @@
|
|||||||
<div id="temp-results-container">
|
<div id="temp-results-container">
|
||||||
<div id="temp-results">
|
<div id="temp-results">
|
||||||
<div id="result" class="result">
|
<div id="result" class="result">
|
||||||
<img class="thumb" src="//:0" alt="Thumb"/>
|
<img class="thumb" src="/static/images/loading.gif" alt="Thumb"/>
|
||||||
|
|
||||||
<div class="search-title truncate"></div>
|
<div class="search-title truncate"></div>
|
||||||
<span class="result_info"></span>
|
<span class="result_info"></span>
|
||||||
|
|||||||
@@ -67,7 +67,7 @@
|
|||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
spellcheck="false"
|
spellcheck="false"
|
||||||
maxlength="10"
|
maxlength="10"
|
||||||
length="10"
|
data-length="10"
|
||||||
/>
|
/>
|
||||||
<label for="search" id="forsearch">Type ID of host to be controlled</label>
|
<label for="search" id="forsearch">Type ID of host to be controlled</label>
|
||||||
</div>
|
</div>
|
||||||
@@ -162,7 +162,7 @@
|
|||||||
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script>
|
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script>
|
||||||
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jqueryui-touch-punch/0.2.3/jquery.ui.touch-punch.min.js"></script>
|
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jqueryui-touch-punch/0.2.3/jquery.ui.touch-punch.min.js"></script>
|
||||||
<script type="text/javascript" src="//cdn.socket.io/socket.io-1.2.0.js"></script>
|
<script type="text/javascript" src="//cdn.socket.io/socket.io-1.2.0.js"></script>
|
||||||
<script type="text/javascript" src="/static/dist/lib/materialize.js"></script>
|
<script type="text/javascript" src="/static/dist/lib/materialize.min.js"></script>
|
||||||
<script type="text/javascript" src="/static/dist/remote-min.js"></script>
|
<script type="text/javascript" src="/static/dist/remote-min.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<a class="waves-effect waves-light btn light-blue share" href="http://twitter.com/intent/tweet?url=http://<?php echo $_SERVER['HTTP_HOST'].'/'.$list; ?>&text=Check%20out%20this%20playlist <?php echo ucfirst($list); ?> on Zöff!&via=zoffmusic" target="popup" onclick="window.open('http://twitter.com/intent/tweet?url=http://<?php echo $_SERVER['HTTP_HOST'].'/'.$list; ?>&text=Check%20out%20this playlist <?php echo ucfirst($list); ?> on Zöff!&via=zoffmusic','Share Playlist','width=600,height=300')">
|
<a class="waves-effect waves-light btn light-blue share" href="http://twitter.com/intent/tweet?url=http://<?php echo $_SERVER['HTTP_HOST'].'/'.$list; ?>&text=Check%20out%20this%20playlist%20<?php echo ucfirst($list); ?>%20on%20Zöff!&via=zoffmusic" target="popup" onclick="window.open('http://twitter.com/intent/tweet?url=http://<?php echo $_SERVER['HTTP_HOST'].'/'.$list; ?>&text=Check%20out%20this%20playlist%20<?php echo ucfirst($list); ?>%20on%20Zöff!&via=zoffmusic','Share Playlist','width=600,height=300')">
|
||||||
<img class="left" src="/static/images/twitter.png" alt="Share on Twitter" />Share on Twitter
|
<img class="left" src="/static/images/twitter.png" alt="Share on Twitter" />Share on Twitter
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
@@ -39,8 +39,8 @@
|
|||||||
</a>
|
</a>
|
||||||
</form>
|
</form>
|
||||||
<p>
|
<p>
|
||||||
<a href="https://chart.googleapis.com/chart?chs=500x500&cht=qr&chl=http://<?php echo $_SERVER['HTTP_HOST'].'/'.$list; ?>&choe=UTF-8&chld=L%7C1" >
|
<a href="//chart.googleapis.com/chart?chs=500x500&cht=qr&chl=http://<?php echo $_SERVER['HTTP_HOST'].'/'.$list; ?>&choe=UTF-8&chld=L%7C1" >
|
||||||
<img src="https://chart.googleapis.com/chart?chs=150x150&cht=qr&chl=http://<?php echo $_SERVER['HTTP_HOST'].'/'.$list; ?>&choe=UTF-8&chld=L%7C1" alt="QRCode for link" title="QR code for this page, for easy sharing!" />
|
<img src="//chart.googleapis.com/chart?chs=150x150&cht=qr&chl=http://<?php echo $_SERVER['HTTP_HOST'].'/'.$list; ?>&choe=UTF-8&chld=L%7C1" alt="QRCode for link" title="QR code for this page, for easy sharing!" />
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
<meta property="og:description" content="The Shared (free) YouTube radio. Being built around the YouTube search and video API it enables the creation of collaborative and shared live playlists, with billions of videos and songs to choose from, all for free and without registration. Enjoy!"/>
|
<meta property="og:description" content="The Shared (free) YouTube radio. Being built around the YouTube search and video API it enables the creation of collaborative and shared live playlists, with billions of videos and songs to choose from, all for free and without registration. Enjoy!"/>
|
||||||
<meta property="og:type" content="website"/>
|
<meta property="og:type" content="website"/>
|
||||||
<meta name="google-site-verification" content="WO0VnKRtanBH9-q8SxE_c-W4GNqX_lc49mQgxPjvC-M" />
|
<meta name="google-site-verification" content="WO0VnKRtanBH9-q8SxE_c-W4GNqX_lc49mQgxPjvC-M" />
|
||||||
<link type="text/css" rel="stylesheet" href="/static/css/materialize.min.css" media="screen,projection"/>
|
<link type="text/css" rel="stylesheet" href="/static/css/materialize.min.css" media="screen, projection" />
|
||||||
<link rel="stylesheet" type="text/css" href="/static/css/style.css" title="Default" />
|
<link rel="stylesheet" type="text/css" href="/static/css/style.css" title="Default" />
|
||||||
<link rel="icon" id="favicon" type="image/png" href="/static/images/favicon.png"/>
|
<link rel="icon" id="favicon" type="image/png" href="/static/images/favicon.png"/>
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ if(isset($_GET['chan'])){
|
|||||||
required pattern="[a-zA-Z0-9]+"
|
required pattern="[a-zA-Z0-9]+"
|
||||||
spellcheck="false"
|
spellcheck="false"
|
||||||
maxlength="18"
|
maxlength="18"
|
||||||
length="18"
|
data-length="18"
|
||||||
/>
|
/>
|
||||||
<label for="search">Find or create radio channel</label>
|
<label for="search">Find or create radio channel</label>
|
||||||
<datalist id="searches">
|
<datalist id="searches">
|
||||||
@@ -85,8 +85,8 @@ if(isset($_GET['chan'])){
|
|||||||
<div id="preloader" class="progress">
|
<div id="preloader" class="progress">
|
||||||
<div class="indeterminate"></div>
|
<div class="indeterminate"></div>
|
||||||
</div>
|
</div>
|
||||||
|
<div id="channel-list-container">
|
||||||
<ul class="row" id="channels">
|
<ul class="row" id="channels">
|
||||||
<ul>
|
|
||||||
<li id="chan-card" class="col s12 m4 l3">
|
<li id="chan-card" class="col s12 m4 l3">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<a class="chan-link">
|
<a class="chan-link">
|
||||||
@@ -108,8 +108,8 @@ if(isset($_GET['chan'])){
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</ul>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
|
|||||||
@@ -110,7 +110,7 @@
|
|||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<a id="code-link" target="_blank">
|
<a id="code-link" target="_blank">
|
||||||
<img id="code-qr" alt="QR code for control" title="Link to control this Zöff player" src="//:0" />
|
<img id="code-qr" alt="QR code for control" title="Link to control this Zöff player" src="https://chart.googleapis.com/chart?chs=221x221&cht=qr&choe=UTF-8&chld=L|1&chl=https://zoff.no" />
|
||||||
<h4 id="code-text">ABBADUR</h4>
|
<h4 id="code-text">ABBADUR</h4>
|
||||||
</a>
|
</a>
|
||||||
<a>
|
<a>
|
||||||
|
|||||||
2
static/dist/frontpage-min.js
vendored
2
static/dist/frontpage-min.js
vendored
@@ -1 +1 @@
|
|||||||
!function(){var e,t,o={populate_channels:function(t){var n="",a=0;t.sort(o.sortFunction),pre_card=$(e);for(x in t){var s=t[x][3];if(20>a){var i=t[x][1],l=t[x][0],r="background-image:url('https://img.youtube.com/vi/"+i+"/hqdefault.jpg');",c=t[x][4],d=pre_card;d.find(".chan-name").text(s),d.find(".chan-name").attr("title",s),d.find(".chan-views").text(l),d.find(".chan-songs").text(c),d.find(".chan-bg").attr("style",r),d.find(".chan-link").attr("href",s),$("#channels").append(d.html())}n+="<option value='"+s+"'> ",a++}document.getElementById("preloader").style.display="none",document.getElementById("searches").innerHTML=n,$("#channels").fadeIn(800),$("#search").focus()},sortFunction:function(e,t){var o=e[0],n=t[0],a=e[4],s=t[4];return n>o?1:o>n?-1:s>a?1:a>s?-1:0}};String.prototype.capitalizeFirstLetter=function(){return this.charAt(0).toUpperCase()+this.slice(1)},$(document).ready(function(){e=$("#channels").html(),$("#channels").empty();var n=io.connect("//"+window.location.hostname+":3000");n.emit("frontpage_lists"),n.on("playlists",function(e){o.populate_channels(e)});var a=0;document.getElementById("zicon").addEventListener("click",function(){a+=10,document.getElementById("zicon").style.paddingLeft=a+"%",a>=100&&(window.location.href="https://www.youtube.com/v/0IGsNdVoEh0?autoplay=1&showinfo=0&autohide=1")}),t=$.ajax({type:"GET",url:"https://api.github.com/repos/zoff-music/zoff/commits",async:!1}).responseText,t=$.parseJSON(t),$("#latest-commit").html("Latest Commit: <br>"+t[0].commit.author.date.substring(0,10)+": "+t[0].committer.login+"<br><a href='"+t[0].html_url+"'>"+t[0].sha.substring(0,10)+"</a>: "+t[0].commit.message+"<br")})}();
|
!function(){var e,t,o={populate_channels:function(t){var n="",a=0;t.sort(o.sortFunction),pre_card=$(e);for(x in t){var s=t[x][3];if(20>a){var i=t[x][1],l=t[x][0],r="background-image:url('https://img.youtube.com/vi/"+i+"/hqdefault.jpg');",c=t[x][4],d=pre_card;d.find(".chan-name").text(s),d.find(".chan-name").attr("title",s),d.find(".chan-views").text(l),d.find(".chan-songs").text(c),d.find(".chan-bg").attr("style",r),d.find(".chan-link").attr("href",s),$("#channels").append(d.html())}n+="<option value='"+s+"'> ",a++}document.getElementById("preloader").style.display="none",document.getElementById("searches").innerHTML=n,$("#channels").fadeIn(800),$("#search").focus()},sortFunction:function(e,t){var o=e[0],n=t[0],a=e[4],s=t[4];return n>o?1:o>n?-1:s>a?1:a>s?-1:0}};String.prototype.capitalizeFirstLetter=function(){return this.charAt(0).toUpperCase()+this.slice(1)},$(document).ready(function(){e=$("#channel-list-container").html(),console.log(e),window.list_html=e,$("#channels").empty();var n=io.connect("//"+window.location.hostname+":3000");n.emit("frontpage_lists"),n.on("playlists",function(e){o.populate_channels(e)});var a=0;document.getElementById("zicon").addEventListener("click",function(){a+=10,document.getElementById("zicon").style.paddingLeft=a+"%",a>=100&&(window.location.href="https://www.youtube.com/v/0IGsNdVoEh0?autoplay=1&showinfo=0&autohide=1")}),t=$.ajax({type:"GET",url:"https://api.github.com/repos/zoff-music/zoff/commits",async:!1}).responseText,t=$.parseJSON(t),$("#latest-commit").html("Latest Commit: <br>"+t[0].commit.author.date.substring(0,10)+": "+t[0].committer.login+"<br><a href='"+t[0].html_url+"'>"+t[0].sha.substring(0,10)+"</a>: "+t[0].commit.message+"<br")})}();
|
||||||
4
static/dist/lib/materialize.js
vendored
4
static/dist/lib/materialize.js
vendored
@@ -5688,7 +5688,7 @@ Picker.extend( 'pickadate', DatePicker )
|
|||||||
$.fn.characterCounter = function(){
|
$.fn.characterCounter = function(){
|
||||||
return this.each(function(){
|
return this.each(function(){
|
||||||
|
|
||||||
itHasLengthAttribute = $(this).attr('length') != undefined;
|
itHasLengthAttribute = $(this).attr('data-length') != undefined;
|
||||||
|
|
||||||
if(itHasLengthAttribute){
|
if(itHasLengthAttribute){
|
||||||
$(this).on('input', updateCounter);
|
$(this).on('input', updateCounter);
|
||||||
@@ -5702,7 +5702,7 @@ Picker.extend( 'pickadate', DatePicker )
|
|||||||
};
|
};
|
||||||
|
|
||||||
function updateCounter(){
|
function updateCounter(){
|
||||||
var maxLength = +$(this).attr('length'),
|
var maxLength = +$(this).attr('data-length'),
|
||||||
actualLength = +$(this).val().length,
|
actualLength = +$(this).val().length,
|
||||||
isValidLength = actualLength <= maxLength;
|
isValidLength = actualLength <= maxLength;
|
||||||
|
|
||||||
|
|||||||
2
static/dist/lib/materialize.min.js
vendored
2
static/dist/lib/materialize.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -89,7 +89,9 @@ $(document).ready(function (){
|
|||||||
|
|
||||||
//Materialize.toast("<a href='/remote' style='color:white;'>Try out our new feature, remote!</a>", 8000)
|
//Materialize.toast("<a href='/remote' style='color:white;'>Try out our new feature, remote!</a>", 8000)
|
||||||
|
|
||||||
list_html = $("#channels").html();
|
list_html = $("#channel-list-container").html();
|
||||||
|
console.log(list_html);
|
||||||
|
window.list_html = list_html;
|
||||||
$("#channels").empty();
|
$("#channels").empty();
|
||||||
|
|
||||||
var socket = io.connect('//'+window.location.hostname+':3000');
|
var socket = io.connect('//'+window.location.hostname+':3000');
|
||||||
|
|||||||
Reference in New Issue
Block a user