Changed side of settings on mobile

This commit is contained in:
Kasper Rynning-Tønnesen
2016-04-28 13:40:47 +02:00
parent 19a528842b
commit 8b62f3d9ff
4 changed files with 7 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
//importScripts('/static/dist/lib/cache-polyfill.js'); //importScripts('/static/dist/lib/cache-polyfill.js');
var version = 'v1.0.2'; var version = 'v1.1';
var CACHE_FILES = [ var CACHE_FILES = [
'https://chart.googleapis.com/chart?chs=150x150&cht=qr&chl=https://zoff.no/&choe=UTF-8&chld=L%7C1', 'https://chart.googleapis.com/chart?chs=150x150&cht=qr&chl=https://zoff.no/&choe=UTF-8&chld=L%7C1',
'https://fonts.googleapis.com/icon?family=Material+Icons', 'https://fonts.googleapis.com/icon?family=Material+Icons',

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -77,6 +77,7 @@ function init(){
chan = $("#chan").html(); chan = $("#chan").html();
console.log(chan); console.log(chan);
mobile_beginning = window.mobilecheck(); mobile_beginning = window.mobilecheck();
var side = window.mobilecheck() ? "left" : "right";
window.onpopstate = function(e){ window.onpopstate = function(e){
onepage_load(); onepage_load();
@@ -94,12 +95,14 @@ function init(){
//window.submit = Search.submit; //window.submit = Search.submit;
//window.submitAndClose = Search.submitAndClose; //window.submitAndClose = Search.submitAndClose;
$('ul.playlist-tabs').tabs(); $('ul.playlist-tabs').tabs();
$('ul.playlist-tabs-loggedIn').tabs(); $('ul.playlist-tabs-loggedIn').tabs();
$('.chatTabs').tabs(); $('.chatTabs').tabs();
$("#settings").sideNav({ $("#settings").sideNav({
menuWidth: 300, // Default is 240 menuWidth: 300, // Default is 240
edge: 'right', // Choose the horizontal origin edge: side, // Choose the horizontal origin
closeOnClick: false // Closes side-nav on <a> clicks, useful for Angular/Meteor closeOnClick: false // Closes side-nav on <a> clicks, useful for Angular/Meteor
}); });
$('.collapsible').collapsible({ $('.collapsible').collapsible({