1<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="iso-8859-1" %> 2<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 3 4<%-- 5 ~ This file is part of Madsonic. 6 ~ 7 ~ Madsonic is free software: you can redistribute it and/or modify 8 ~ it under the terms of the GNU General Public License as published by 9 ~ the Free Software Foundation, either version 3 of the License, or 10 ~ (at your option) any later version. 11 ~ 12 ~ Madsonic is distributed in the hope that it will be useful, 13 ~ but WITHOUT ANY WARRANTY; without even the implied warranty of 14 ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 ~ GNU General Public License for more details. 16 ~ 17 ~ You should have received a copy of the GNU General Public License 18 ~ along with Madsonic. If not, see <http://www.gnu.org/licenses/>. 19 ~ 20 ~ Copyright 2015 (C) Sindre Mehus 21 --%> 22 23<html><head> 24 <%@ include file="head.jsp" %> 25 <%@ include file="jquery.jsp" %> 26 <script type="text/javascript" src="<c:url value="/script/scripts.js"/>"></script> 27 <c:choose> 28 <c:when test="${model.customScrollbar}"> 29 <link href="<c:url value="/style/customScrollbar.css"/>" rel="stylesheet"> 30 <script type="text/javascript" src="<c:url value="/script/jquery.mousewheel.min.js"/>"></script> 31 <script type="text/javascript" src="<c:url value="/script/jquery.mCustomScrollbar.concat.min.js"/>"></script> 32 </c:when> 33 <c:otherwise> 34 <link href="<c:url value="/style/customScrollbarAuto.css"/>" rel="stylesheet"> 35 </c:otherwise> 36 </c:choose> 37 38</head> 39 40<body class="mainframe bgcolor1"> 41<script type="text/javascript" src="<c:url value="/script/wz_tooltip.js"/>"></script> 42<script type="text/javascript" src="<c:url value="/script/tip_balloon.js"/>"></script> 43<div id="content_main" class="content_main"> 44<!-- CONTENT --> 45 46<c:import url="settingsHeader.jsp"> 47 <c:param name="cat" value="sonos"/> 48 <c:param name="toast" value="${model.toast}"/> 49</c:import> 50 51<form method="post" action="sonosSettings.view"> 52 <br> 53 <div> 54 <!-- disabled="disabled" --> 55 <input type="checkbox" name="sonosEnabled" id="sonosEnabled" class="checkbox" 56 <c:if test="${model.sonosEnabled}">checked="checked"</c:if>/> 57 <label for="sonosEnabled"><fmt:message key="sonossettings.enabled"/></label> 58 </div> 59 <br> 60 <br> 61 <p class="detail" style="width:60%;white-space:normal"> 62 <fmt:message key="sonossettings.description"/> 63 </p> 64 <div> 65 <fmt:message key="sonossettings.servicename"/> 66 <input name="sonosServiceName" id="sonosServiceName" size="40" 67 value="<c:out value="${model.sonosServiceName}" escapeXml="true"/>"/> 68 </div> 69 <p class="detail" style="width:60%;white-space:normal;padding-top:10px"> 70 <fmt:message key="sonossettings.servicename.description"/> 71 </p> 72 <c:set var="licenseInfo" value="${model.licenseInfo}"/> 73 <%@ include file="licenseNotice.jsp" %> 74 <br> 75 <p> 76 <input type="submit" value="<fmt:message key="common.save"/>" style="margin-right:0.3em"> 77 <input type="button" value="<fmt:message key="common.cancel"/>" onclick="location.href='nowPlaying.view'"> 78 </p> 79</form> 80 81<!-- CONTENT --> 82</div> 83 84<c:if test="${model.customScrollbar}"> 85 <script> 86 (function($){ 87 $(window).load(function(){ 88 89 $("#content_main").mCustomScrollbar({ 90 axis:"y", 91 scrollInertia:450, /*scrolling inertia: integer (milliseconds)*/ 92 mouseWheel:true, /*mousewheel support: boolean*/ 93 mouseWheelPixels:"auto", /*mousewheel pixels amount: integer, "auto"*/ 94 autoDraggerLength:true, /*auto-adjust scrollbar dragger length: boolean*/ 95 autoHideScrollbar:false, /*auto-hide scrollbar when idle*/ 96 alwaysShowScrollbar:true, 97 scrollButtons:{ enable:true, /*scroll buttons support: boolean*/ 98 scrollType:"continuous", /*scroll buttons scrolling type: "continuous", "pixels"*/ 99 scrollSpeed:"auto", /*scroll buttons continuous scrolling speed: integer, "auto"*/ 100 scrollAmount:40 /*scroll buttons pixels scroll amount: integer (pixels)*/}, 101 theme:"${model.customScrollbarTheme}", 102 scrollbarPosition:"inside" 103 }); 104 }); 105 })(jQuery); 106 107 $("#content_main").mCustomScrollbar("update"); 108 109 110$("#content_main").resize(function(e){ 111 $("#content_main").mCustomScrollbar("update"); 112}); 113</script> 114</c:if> 115 116</body> 117 118</html>