on the way to v2
This commit is contained in:
parent
20fcb57c9e
commit
1f0c63c7f3
28 changed files with 4240 additions and 3346 deletions
513
config.js
Normal file
513
config.js
Normal file
|
|
@ -0,0 +1,513 @@
|
|||
nmPorts = {
|
||||
'MainMix':'localhost:6666',
|
||||
'Drums':'SCSon:6667',
|
||||
'Basses':'SCSon:6668',
|
||||
'Guitars':'SCSon:6669',
|
||||
'MxSynths':'SCSon:6670',
|
||||
'MxDrums':'SCSon:6671',
|
||||
'Vocals':'SCSon:6672',
|
||||
'Toms':'SCSon:6673',
|
||||
'Acoustics':'SCSon:6674',
|
||||
'MonitorsDag':'SCSon:6675',
|
||||
'MonitorsJeannot':'SCSon:6676',
|
||||
'MonitorsORL':'SCSon:6677',
|
||||
'Mains':'SCSon:6678',
|
||||
}
|
||||
|
||||
TABS = {
|
||||
|
||||
MainMix: {
|
||||
|
||||
title:'MainMix',
|
||||
strips:{
|
||||
|
||||
Drums: {
|
||||
title:'Drums',
|
||||
range:'db',
|
||||
target:nmPorts['MainMix'],
|
||||
path:'/strip/Drums/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
|
||||
Basses: {
|
||||
title:'Basses',
|
||||
range:'db',
|
||||
target:nmPorts['MainMix'],
|
||||
path:'/strip/Basses/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
|
||||
Guitars: {
|
||||
title:'Guitars',
|
||||
range:'db',
|
||||
target:nmPorts['MainMix'],
|
||||
path:'/strip/Guitars/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
|
||||
MxSynths: {
|
||||
title:'MxSynths',
|
||||
range:'db',
|
||||
target:nmPorts['MainMix'],
|
||||
path:'/strip/MxSynths/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
|
||||
MxDrums: {
|
||||
title:'MxDrums',
|
||||
range:'db',
|
||||
target:nmPorts['MainMix'],
|
||||
path:'/strip/MxDrums/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
|
||||
Vocals: {
|
||||
title:'Vocals',
|
||||
range:'db',
|
||||
target:nmPorts['MainMix'],
|
||||
path:'/strip/Vocals/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
|
||||
Acoustics: {
|
||||
title:'Acoustics',
|
||||
range:'db',
|
||||
target:nmPorts['MainMix'],
|
||||
path:'/strip/Acoustics/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
|
||||
FOH: {
|
||||
title:'FOH',
|
||||
range:'db',
|
||||
target:nmPorts['Mains'],
|
||||
path:'/strip/FOH/Gain/Gain%20(dB)/unscaled',
|
||||
color:'#777'
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Drums: {
|
||||
title:'Drums',
|
||||
tabs:{
|
||||
Drumset: {
|
||||
title:'Drumset',
|
||||
strips: {
|
||||
Kick: {
|
||||
title:'Kick',
|
||||
range:'db',
|
||||
target:nmPorts['Drums'],
|
||||
path:'/strip/Kick/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
|
||||
Snare: {
|
||||
title:'Snare',
|
||||
range:'db',
|
||||
target:nmPorts['Drums'],
|
||||
path:'/strip/Snare/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
|
||||
Toms: {
|
||||
title:'Toms',
|
||||
range:'db',
|
||||
target:nmPorts['Drums'],
|
||||
path:'/strip/Toms/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
|
||||
OH_L: {
|
||||
title:'OH-L',
|
||||
range:'db',
|
||||
target:nmPorts['Drums'],
|
||||
path:'/strip/OH-L/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
|
||||
OH_R: {
|
||||
title:'OH-R',
|
||||
range:'db',
|
||||
target:nmPorts['Drums'],
|
||||
path:'/strip/OH-R/Gain/Gain%20(dB)/unscaled'
|
||||
|
||||
},
|
||||
Drums: {
|
||||
title:'Drums',
|
||||
range:'db',
|
||||
target:nmPorts['MainMix'],
|
||||
path:'/strip/Drums/Gain/Gain%20(dB)/unscaled',
|
||||
color:'#777'
|
||||
}
|
||||
},
|
||||
|
||||
},
|
||||
|
||||
Toms: {
|
||||
strips:{
|
||||
Tom1: {
|
||||
title:'Tom1',
|
||||
range:'db',
|
||||
target:nmPorts['Toms'],
|
||||
path:'/strip/Tom1/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
|
||||
Tom2: {
|
||||
title:'Tom2',
|
||||
range:'db',
|
||||
target:nmPorts['Toms'],
|
||||
path:'/strip/Tom2/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
|
||||
Tom3: {
|
||||
title:'Tom3',
|
||||
range:'db',
|
||||
target:nmPorts['Toms'],
|
||||
path:'/strip/Tom3/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
Toms: {
|
||||
title:'Toms',
|
||||
range:'db',
|
||||
target:nmPorts['Drums'],
|
||||
path:'/strip/Toms/Gain/Gain%20(dB)/unscaled',
|
||||
color:'#777'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Basses: {
|
||||
title:'Basses',
|
||||
strips:{
|
||||
|
||||
Bass_ORL: {
|
||||
title:'Bass_ORL',
|
||||
range:'db',
|
||||
target:nmPorts['Basses'],
|
||||
path:'/strip/Bass_ORL/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
|
||||
Oct_Bass_ORL: {
|
||||
title:'Oct_Bass_ORL',
|
||||
range:'db',
|
||||
target:nmPorts['Basses'],
|
||||
path:'/strip/Oct_Bass_ORL/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
|
||||
FX_Bass_ORL: {
|
||||
title:'FX_Bass_ORL',
|
||||
range:'db',
|
||||
target:nmPorts['Basses'],
|
||||
path:'/strip/FX_Bass_ORL/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
|
||||
Bass_Dag: {
|
||||
title:'Bass_Dag',
|
||||
range:'db',
|
||||
target:nmPorts['Basses'],
|
||||
path:'/strip/Bass_Dag/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
|
||||
Oct_Bass_Dag: {
|
||||
title:'Oct_Bass_Dag',
|
||||
range:'db',
|
||||
target:nmPorts['Basses'],
|
||||
path:'/strip/Oct_Bass_Dag/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
|
||||
FX_Bass_Dag: {
|
||||
title:'FX_Bass_Dag',
|
||||
range:'db',
|
||||
target:nmPorts['Basses'],
|
||||
path:'/strip/FX_Bass_Dag/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
Basses: {
|
||||
title:'Basses',
|
||||
range:'db',
|
||||
target:nmPorts['MainMix'],
|
||||
path:'/strip/Basses/Gain/Gain%20(dB)/unscaled',
|
||||
color:'#777'
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
Guitars: {
|
||||
title:'Guitars',
|
||||
strips:{
|
||||
|
||||
Guitar_ORL: {
|
||||
title:'Guitar_ORL',
|
||||
range:'db',
|
||||
target:nmPorts['Guitars'],
|
||||
path:'/strip/Guitar_ORL/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
|
||||
FX_Gtr_ORL_1: {
|
||||
title:'FX_Gtr_ORL_1',
|
||||
range:'db',
|
||||
target:nmPorts['Guitars'],
|
||||
path:'/strip/FX_Gtr_ORL_1/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
|
||||
FX_Gtr_ORL_2: {
|
||||
title:'FX_Gtr_ORL_2',
|
||||
range:'db',
|
||||
target:nmPorts['Guitars'],
|
||||
path:'/strip/FX_Gtr_ORL_2/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
|
||||
FX_Gtr_ORL: {
|
||||
title:'FX_Gtr_ORL',
|
||||
range:'db',
|
||||
target:nmPorts['Guitars'],
|
||||
path:'/strip/FX_Gtr_ORL/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
|
||||
Guitar_Dag: {
|
||||
title:'Guitar_Dag',
|
||||
range:'db',
|
||||
target:nmPorts['Guitars'],
|
||||
path:'/strip/Guitar_Dag/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
|
||||
FX_Gtr_Dag_1: {
|
||||
title:'FX_Gtr_Dag_1',
|
||||
range:'db',
|
||||
target:nmPorts['Guitars'],
|
||||
path:'/strip/FX_Gtr_Dag_1/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
|
||||
FX_Gtr_Dag_2: {
|
||||
title:'FX_Gtr_Dag_2',
|
||||
range:'db',
|
||||
target:nmPorts['Guitars'],
|
||||
path:'/strip/FX_Gtr_Dag_2/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
|
||||
FX_Gtr_Dag: {
|
||||
title:'FX_Gtr_Dag',
|
||||
range:'db',
|
||||
target:nmPorts['Guitars'],
|
||||
path:'/strip/FX_Gtr_Dag/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
|
||||
Scape_Gtr_Dag: {
|
||||
title:'Scape_Gtr_Dag',
|
||||
range:'db',
|
||||
target:nmPorts['Guitars'],
|
||||
path:'/strip/Scape_Gtr_Dag/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
Guitars: {
|
||||
title:'Guitars',
|
||||
range:'db',
|
||||
target:nmPorts['MainMix'],
|
||||
path:'/strip/Guitars/Gain/Gain%20(dB)/unscaled',
|
||||
color:'#777'
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
MxSynths: {
|
||||
title:'MxSynths',
|
||||
strips:{
|
||||
|
||||
MxBass: {
|
||||
title:'MxBass',
|
||||
range:'db',
|
||||
target:nmPorts['MxSynths'],
|
||||
path:'/strip/MxBass/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
|
||||
MxChords: {
|
||||
title:'MxChords',
|
||||
range:'db',
|
||||
target:nmPorts['MxSynths'],
|
||||
path:'/strip/MxChords/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
|
||||
MxLead: {
|
||||
title:'MxLead',
|
||||
range:'db',
|
||||
target:nmPorts['MxSynths'],
|
||||
path:'/strip/MxLead/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
|
||||
MxCtLead: {
|
||||
title:'MxCtLead',
|
||||
range:'db',
|
||||
target:nmPorts['MxSynths'],
|
||||
path:'/strip/MxCtLead/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
|
||||
MxClassical: {
|
||||
title:'MxClassical',
|
||||
range:'db',
|
||||
target:nmPorts['MxSynths'],
|
||||
path:'/strip/MxClassical/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
MxSynths: {
|
||||
title:'MxSynths',
|
||||
range:'db',
|
||||
target:nmPorts['MainMix'],
|
||||
path:'/strip/MxSynths/Gain/Gain%20(dB)/unscaled',
|
||||
color:'#777'
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
MxDrums: {
|
||||
title:'MxDrums',
|
||||
strips:{
|
||||
|
||||
MxKicks: {
|
||||
title:'MxKicks',
|
||||
range:'db',
|
||||
target:nmPorts['MxDrums'],
|
||||
path:'/strip/MxKicks/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
|
||||
MxSnares: {
|
||||
title:'MxSnares',
|
||||
range:'db',
|
||||
target:nmPorts['MxDrums'],
|
||||
path:'/strip/MxSnares/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
|
||||
MxCymbs: {
|
||||
title:'MxCymbs',
|
||||
range:'db',
|
||||
target:nmPorts['MxDrums'],
|
||||
path:'/strip/MxCymbs/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
|
||||
MxCont: {
|
||||
title:'MxCont',
|
||||
range:'db',
|
||||
target:nmPorts['MxDrums'],
|
||||
path:'/strip/MxCont/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
|
||||
MxSamples: {
|
||||
title:'MxSamples',
|
||||
range:'db',
|
||||
target:nmPorts['MxDrums'],
|
||||
path:'/strip/MxSamples/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
MxDrums: {
|
||||
title:'MxDrums',
|
||||
range:'db',
|
||||
target:nmPorts['MainMix'],
|
||||
path:'/strip/MxDrums/Gain/Gain%20(dB)/unscaled',
|
||||
color:'#777'
|
||||
},
|
||||
}
|
||||
},
|
||||
|
||||
Acoustics: {
|
||||
title:'Acoustics',
|
||||
strips:{
|
||||
|
||||
PianoToy: {
|
||||
title:'PianoToy',
|
||||
range:'db',
|
||||
target:nmPorts['Acoustics'],
|
||||
path:'/strip/PianoToy/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
|
||||
Cymbalum: {
|
||||
title:'Cymbalum',
|
||||
range:'db',
|
||||
target:nmPorts['Acoustics'],
|
||||
path:'/strip/Cymbalum/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
|
||||
GuitarAc: {
|
||||
title:'GuitarAc',
|
||||
range:'db',
|
||||
target:nmPorts['Acoustics'],
|
||||
path:'/strip/GuitarAc/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
Acoustics: {
|
||||
title:'Acoustics',
|
||||
range:'db',
|
||||
target:nmPorts['MainMix'],
|
||||
path:'/strip/Acoustics/Gain/Gain%20(dB)/unscaled',
|
||||
color:'#777'
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Vocals: {
|
||||
title:'Vocals',
|
||||
strips:{
|
||||
|
||||
Vx_ORL: {
|
||||
title:'Vx_ORL',
|
||||
range:'db',
|
||||
target:nmPorts['Vocals'],
|
||||
path:'/strip/Vx_ORL/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
|
||||
FX_Vx_ORL_1: {
|
||||
title:'FX_Vx_ORL_1',
|
||||
range:'db',
|
||||
target:nmPorts['Vocals'],
|
||||
path:'/strip/FX_Vx_ORL_1/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
|
||||
FX_Vx_ORL_2: {
|
||||
title:'FX_Vx_ORL_2',
|
||||
range:'db',
|
||||
target:nmPorts['Vocals'],
|
||||
path:'/strip/FX_Vx_ORL_2/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
|
||||
FX_Vx_ORL: {
|
||||
title:'FX_Vx_ORL',
|
||||
range:'db',
|
||||
target:nmPorts['Vocals'],
|
||||
path:'/strip/FX_Vx_ORL/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
|
||||
Vx_Dag: {
|
||||
title:'Vx_Dag',
|
||||
range:'db',
|
||||
target:nmPorts['Vocals'],
|
||||
path:'/strip/Vx_Dag/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
|
||||
FX_Vx_Dag_1: {
|
||||
title:'FX_Vx_Dag_1',
|
||||
range:'db',
|
||||
target:nmPorts['Vocals'],
|
||||
path:'/strip/FX_Vx_Dag_1/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
|
||||
FX_Vx_Dag_2: {
|
||||
title:'FX_Vx_Dag_2',
|
||||
range:'db',
|
||||
target:nmPorts['Vocals'],
|
||||
path:'/strip/FX_Vx_Dag_2/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
|
||||
FX_Vx_Dag: {
|
||||
title:'FX_Vx_Dag',
|
||||
range:'db',
|
||||
target:nmPorts['Vocals'],
|
||||
path:'/strip/FX_Vx_Dag/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
|
||||
Scape_Vx_Dag: {
|
||||
title:'Scape_Vx_Dag',
|
||||
range:'db',
|
||||
target:nmPorts['Vocals'],
|
||||
path:'/strip/Scape_Vx_Dag/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
|
||||
Vx_Jeannot: {
|
||||
title:'Vx_Jeannot',
|
||||
range:'db',
|
||||
target:nmPorts['Vocals'],
|
||||
path:'/strip/Vx_Jeannot/Gain/Gain%20(dB)/unscaled'
|
||||
},
|
||||
Vocals: {
|
||||
title:'Vocals',
|
||||
range:'db',
|
||||
target:nmPorts['MainMix'],
|
||||
path:'/strip/Vocals/Gain/Gain%20(dB)/unscaled',
|
||||
color:'#777'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
14
dagz.py
Normal file
14
dagz.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import sys
|
||||
from os import path as os_path
|
||||
sys.path.append(os_path.dirname(os_path.abspath(__file__))+'/lib')
|
||||
from oschtmlgui import oscHtmlGui
|
||||
|
||||
|
||||
gui = oscHtmlGui(
|
||||
port=3333,
|
||||
presetName='sebkhachott',
|
||||
config='monitorsdagz.js'
|
||||
)
|
||||
|
||||
|
||||
gui.main()
|
||||
115
example/jqueryScroll.js
vendored
115
example/jqueryScroll.js
vendored
|
|
@ -1,115 +0,0 @@
|
|||
/* jquery.nicescroll 3.5.4 InuYaksa*2013 MIT http://areaaperta.com/nicescroll */(function(e){"function"===typeof define&&define.amd?define(["jquery"],e):e(jQuery)})(function(e){var y=!1,C=!1,J=5E3,K=2E3,x=0,F=["ms","moz","webkit","o"],s=window.requestAnimationFrame||!1,v=window.cancelAnimationFrame||!1;if(!s)for(var L in F){var D=F[L];s||(s=window[D+"RequestAnimationFrame"]);v||(v=window[D+"CancelAnimationFrame"]||window[D+"CancelRequestAnimationFrame"])}var z=window.MutationObserver||window.WebKitMutationObserver||!1,G={zindex:"auto",cursoropacitymin:0,cursoropacitymax:1,cursorcolor:"#424242",
|
||||
cursorwidth:"5px",cursorborder:"1px solid #fff",cursorborderradius:"5px",scrollspeed:60,mousescrollstep:24,touchbehavior:!1,hwacceleration:!0,usetransition:!0,boxzoom:!1,dblclickzoom:!0,gesturezoom:!0,grabcursorenabled:!0,autohidemode:!0,background:"",iframeautoresize:!0,cursorminheight:32,preservenativescrolling:!0,railoffset:!1,bouncescroll:!0,spacebarenabled:!0,railpadding:{top:0,right:0,left:0,bottom:0},disableoutline:!0,horizrailenabled:!0,railalign:"right",railvalign:"bottom",enabletranslate3d:!0,
|
||||
enablemousewheel:!0,enablekeyboard:!0,smoothscroll:!0,sensitiverail:!0,enablemouselockapi:!0,cursorfixedheight:!1,directionlockdeadzone:6,hidecursordelay:400,nativeparentscrolling:!0,enablescrollonselection:!0,overflowx:!0,overflowy:!0,cursordragspeed:0.3,rtlmode:"auto",cursordragontouch:!1,oneaxismousemode:"auto",scriptpath:function(){var e=document.getElementsByTagName("script"),e=e[e.length-1].src.split("?")[0];return 0<e.split("/").length?e.split("/").slice(0,-1).join("/")+"/":""}()},E=!1,M=function(){if(E)return E;
|
||||
var e=document.createElement("DIV"),b={haspointerlock:"pointerLockElement"in document||"mozPointerLockElement"in document||"webkitPointerLockElement"in document};b.isopera="opera"in window;b.isopera12=b.isopera&&"getUserMedia"in navigator;b.isoperamini="[object OperaMini]"===Object.prototype.toString.call(window.operamini);b.isie="all"in document&&"attachEvent"in e&&!b.isopera;b.isieold=b.isie&&!("msInterpolationMode"in e.style);b.isie7=b.isie&&!b.isieold&&(!("documentMode"in document)||7==document.documentMode);
|
||||
b.isie8=b.isie&&"documentMode"in document&&8==document.documentMode;b.isie9=b.isie&&"performance"in window&&9<=document.documentMode;b.isie10=b.isie&&"performance"in window&&10<=document.documentMode;b.isie9mobile=/iemobile.9/i.test(navigator.userAgent);b.isie9mobile&&(b.isie9=!1);b.isie7mobile=!b.isie9mobile&&b.isie7&&/iemobile/i.test(navigator.userAgent);b.ismozilla="MozAppearance"in e.style;b.iswebkit="WebkitAppearance"in e.style;b.ischrome="chrome"in window;b.ischrome22=b.ischrome&&b.haspointerlock;
|
||||
b.ischrome26=b.ischrome&&"transition"in e.style;b.cantouch="ontouchstart"in document.documentElement||"ontouchstart"in window;b.hasmstouch=window.navigator.msPointerEnabled||!1;b.ismac=/^mac$/i.test(navigator.platform);b.isios=b.cantouch&&/iphone|ipad|ipod/i.test(navigator.platform);b.isios4=b.isios&&!("seal"in Object);b.isandroid=/android/i.test(navigator.userAgent);b.trstyle=!1;b.hastransform=!1;b.hastranslate3d=!1;b.transitionstyle=!1;b.hastransition=!1;b.transitionend=!1;for(var h=["transform",
|
||||
"msTransform","webkitTransform","MozTransform","OTransform"],k=0;k<h.length;k++)if("undefined"!=typeof e.style[h[k]]){b.trstyle=h[k];break}b.hastransform=!1!=b.trstyle;b.hastransform&&(e.style[b.trstyle]="translate3d(1px,2px,3px)",b.hastranslate3d=/translate3d/.test(e.style[b.trstyle]));b.transitionstyle=!1;b.prefixstyle="";b.transitionend=!1;for(var h="transition webkitTransition MozTransition OTransition OTransition msTransition KhtmlTransition".split(" "),l=" -webkit- -moz- -o- -o -ms- -khtml-".split(" "),
|
||||
q="transitionend webkitTransitionEnd transitionend otransitionend oTransitionEnd msTransitionEnd KhtmlTransitionEnd".split(" "),k=0;k<h.length;k++)if(h[k]in e.style){b.transitionstyle=h[k];b.prefixstyle=l[k];b.transitionend=q[k];break}b.ischrome26&&(b.prefixstyle=l[1]);b.hastransition=b.transitionstyle;a:{h=["-moz-grab","-webkit-grab","grab"];if(b.ischrome&&!b.ischrome22||b.isie)h=[];for(k=0;k<h.length;k++)if(l=h[k],e.style.cursor=l,e.style.cursor==l){h=l;break a}h="url(http://www.google.com/intl/en_ALL/mapfiles/openhand.cur),n-resize"}b.cursorgrabvalue=
|
||||
h;b.hasmousecapture="setCapture"in e;b.hasMutationObserver=!1!==z;return E=b},N=function(g,b){function h(){var c=a.win;if("zIndex"in c)return c.zIndex();for(;0<c.length&&9!=c[0].nodeType;){var b=c.css("zIndex");if(!isNaN(b)&&0!=b)return parseInt(b);c=c.parent()}return!1}function k(c,b,f){b=c.css(b);c=parseFloat(b);return isNaN(c)?(c=w[b]||0,f=3==c?f?a.win.outerHeight()-a.win.innerHeight():a.win.outerWidth()-a.win.innerWidth():1,a.isie8&&c&&(c+=1),f?c:0):c}function l(c,b,f,e){a._bind(c,b,function(a){a=
|
||||
a?a:window.event;var e={original:a,target:a.target||a.srcElement,type:"wheel",deltaMode:"MozMousePixelScroll"==a.type?0:1,deltaX:0,deltaZ:0,preventDefault:function(){a.preventDefault?a.preventDefault():a.returnValue=!1;return!1},stopImmediatePropagation:function(){a.stopImmediatePropagation?a.stopImmediatePropagation():a.cancelBubble=!0}};"mousewheel"==b?(e.deltaY=-0.025*a.wheelDelta,a.wheelDeltaX&&(e.deltaX=-0.025*a.wheelDeltaX)):e.deltaY=a.detail;return f.call(c,e)},e)}function q(c,b,f){var e,d;
|
||||
0==c.deltaMode?(e=-Math.floor(c.deltaX*(a.opt.mousescrollstep/54)),d=-Math.floor(c.deltaY*(a.opt.mousescrollstep/54))):1==c.deltaMode&&(e=-Math.floor(c.deltaX*a.opt.mousescrollstep),d=-Math.floor(c.deltaY*a.opt.mousescrollstep));b&&(a.opt.oneaxismousemode&&0==e&&d)&&(e=d,d=0);e&&(a.scrollmom&&a.scrollmom.stop(),a.lastdeltax+=e,a.debounced("mousewheelx",function(){var c=a.lastdeltax;a.lastdeltax=0;a.rail.drag||a.doScrollLeftBy(c)},15));if(d){if(a.opt.nativeparentscrolling&&f&&!a.ispage&&!a.zoomactive)if(0>
|
||||
d){if(a.getScrollTop()>=a.page.maxh)return!0}else if(0>=a.getScrollTop())return!0;a.scrollmom&&a.scrollmom.stop();a.lastdeltay+=d;a.debounced("mousewheely",function(){var c=a.lastdeltay;a.lastdeltay=0;a.rail.drag||a.doScrollBy(c)},15)}c.stopImmediatePropagation();return c.preventDefault()}var a=this;this.version="3.5.4";this.name="nicescroll";this.me=b;this.opt={doc:e("body"),win:!1};e.extend(this.opt,G);this.opt.snapbackspeed=80;if(g)for(var p in a.opt)"undefined"!=typeof g[p]&&(a.opt[p]=g[p]);this.iddoc=
|
||||
(this.doc=a.opt.doc)&&this.doc[0]?this.doc[0].id||"":"";this.ispage=/^BODY|HTML/.test(a.opt.win?a.opt.win[0].nodeName:this.doc[0].nodeName);this.haswrapper=!1!==a.opt.win;this.win=a.opt.win||(this.ispage?e(window):this.doc);this.docscroll=this.ispage&&!this.haswrapper?e(window):this.win;this.body=e("body");this.iframe=this.isfixed=this.viewport=!1;this.isiframe="IFRAME"==this.doc[0].nodeName&&"IFRAME"==this.win[0].nodeName;this.istextarea="TEXTAREA"==this.win[0].nodeName;this.forcescreen=!1;this.canshowonmouseevent=
|
||||
"scroll"!=a.opt.autohidemode;this.page=this.view=this.onzoomout=this.onzoomin=this.onscrollcancel=this.onscrollend=this.onscrollstart=this.onclick=this.ongesturezoom=this.onkeypress=this.onmousewheel=this.onmousemove=this.onmouseup=this.onmousedown=!1;this.scroll={x:0,y:0};this.scrollratio={x:0,y:0};this.cursorheight=20;this.scrollvaluemax=0;this.observerremover=this.observer=this.scrollmom=this.scrollrunning=this.isrtlmode=!1;do this.id="ascrail"+K++;while(document.getElementById(this.id));this.hasmousefocus=
|
||||
this.hasfocus=this.zoomactive=this.zoom=this.selectiondrag=this.cursorfreezed=this.cursor=this.rail=!1;this.visibility=!0;this.hidden=this.locked=!1;this.cursoractive=!0;this.wheelprevented=!1;this.overflowx=a.opt.overflowx;this.overflowy=a.opt.overflowy;this.nativescrollingarea=!1;this.checkarea=0;this.events=[];this.saved={};this.delaylist={};this.synclist={};this.lastdeltay=this.lastdeltax=0;this.detected=M();var d=e.extend({},this.detected);this.ishwscroll=(this.canhwscroll=d.hastransform&&a.opt.hwacceleration)&&
|
||||
a.haswrapper;this.istouchcapable=!1;d.cantouch&&(d.ischrome&&!d.isios&&!d.isandroid)&&(this.istouchcapable=!0,d.cantouch=!1);d.cantouch&&(d.ismozilla&&!d.isios&&!d.isandroid)&&(this.istouchcapable=!0,d.cantouch=!1);a.opt.enablemouselockapi||(d.hasmousecapture=!1,d.haspointerlock=!1);this.delayed=function(c,b,f,e){var d=a.delaylist[c],h=(new Date).getTime();if(!e&&d&&d.tt)return!1;d&&d.tt&&clearTimeout(d.tt);if(d&&d.last+f>h&&!d.tt)a.delaylist[c]={last:h+f,tt:setTimeout(function(){a&&(a.delaylist[c].tt=
|
||||
0,b.call())},f)};else if(!d||!d.tt)a.delaylist[c]={last:h,tt:0},setTimeout(function(){b.call()},0)};this.debounced=function(c,b,f){var d=a.delaylist[c];(new Date).getTime();a.delaylist[c]=b;d||setTimeout(function(){var b=a.delaylist[c];a.delaylist[c]=!1;b.call()},f)};var r=!1;this.synched=function(c,b){a.synclist[c]=b;(function(){r||(s(function(){r=!1;for(c in a.synclist){var b=a.synclist[c];b&&b.call(a);a.synclist[c]=!1}}),r=!0)})();return c};this.unsynched=function(c){a.synclist[c]&&(a.synclist[c]=
|
||||
!1)};this.css=function(c,b){for(var f in b)a.saved.css.push([c,f,c.css(f)]),c.css(f,b[f])};this.scrollTop=function(c){return"undefined"==typeof c?a.getScrollTop():a.setScrollTop(c)};this.scrollLeft=function(c){return"undefined"==typeof c?a.getScrollLeft():a.setScrollLeft(c)};BezierClass=function(a,b,f,d,e,h,k){this.st=a;this.ed=b;this.spd=f;this.p1=d||0;this.p2=e||1;this.p3=h||0;this.p4=k||1;this.ts=(new Date).getTime();this.df=this.ed-this.st};BezierClass.prototype={B2:function(a){return 3*a*a*(1-
|
||||
a)},B3:function(a){return 3*a*(1-a)*(1-a)},B4:function(a){return(1-a)*(1-a)*(1-a)},getNow:function(){var a=1-((new Date).getTime()-this.ts)/this.spd,b=this.B2(a)+this.B3(a)+this.B4(a);return 0>a?this.ed:this.st+Math.round(this.df*b)},update:function(a,b){this.st=this.getNow();this.ed=a;this.spd=b;this.ts=(new Date).getTime();this.df=this.ed-this.st;return this}};if(this.ishwscroll){this.doc.translate={x:0,y:0,tx:"0px",ty:"0px"};d.hastranslate3d&&d.isios&&this.doc.css("-webkit-backface-visibility",
|
||||
"hidden");var t=function(){var c=a.doc.css(d.trstyle);return c&&"matrix"==c.substr(0,6)?c.replace(/^.*\((.*)\)$/g,"$1").replace(/px/g,"").split(/, +/):!1};this.getScrollTop=function(c){if(!c){if(c=t())return 16==c.length?-c[13]:-c[5];if(a.timerscroll&&a.timerscroll.bz)return a.timerscroll.bz.getNow()}return a.doc.translate.y};this.getScrollLeft=function(c){if(!c){if(c=t())return 16==c.length?-c[12]:-c[4];if(a.timerscroll&&a.timerscroll.bh)return a.timerscroll.bh.getNow()}return a.doc.translate.x};
|
||||
this.notifyScrollEvent=document.createEvent?function(a){var b=document.createEvent("UIEvents");b.initUIEvent("scroll",!1,!0,window,1);a.dispatchEvent(b)}:document.fireEvent?function(a){var b=document.createEventObject();a.fireEvent("onscroll");b.cancelBubble=!0}:function(a,b){};d.hastranslate3d&&a.opt.enabletranslate3d?(this.setScrollTop=function(c,b){a.doc.translate.y=c;a.doc.translate.ty=-1*c+"px";a.doc.css(d.trstyle,"translate3d("+a.doc.translate.tx+","+a.doc.translate.ty+",0px)");b||a.notifyScrollEvent(a.win[0])},
|
||||
this.setScrollLeft=function(c,b){a.doc.translate.x=c;a.doc.translate.tx=-1*c+"px";a.doc.css(d.trstyle,"translate3d("+a.doc.translate.tx+","+a.doc.translate.ty+",0px)");b||a.notifyScrollEvent(a.win[0])}):(this.setScrollTop=function(c,b){a.doc.translate.y=c;a.doc.translate.ty=-1*c+"px";a.doc.css(d.trstyle,"translate("+a.doc.translate.tx+","+a.doc.translate.ty+")");b||a.notifyScrollEvent(a.win[0])},this.setScrollLeft=function(c,b){a.doc.translate.x=c;a.doc.translate.tx=-1*c+"px";a.doc.css(d.trstyle,
|
||||
"translate("+a.doc.translate.tx+","+a.doc.translate.ty+")");b||a.notifyScrollEvent(a.win[0])})}else this.getScrollTop=function(){return a.docscroll.scrollTop()},this.setScrollTop=function(c){return a.docscroll.scrollTop(c)},this.getScrollLeft=function(){return a.docscroll.scrollLeft()},this.setScrollLeft=function(c){return a.docscroll.scrollLeft(c)};this.getTarget=function(a){return!a?!1:a.target?a.target:a.srcElement?a.srcElement:!1};this.hasParent=function(a,b){if(!a)return!1;for(var f=a.target||
|
||||
a.srcElement||a||!1;f&&f.id!=b;)f=f.parentNode||!1;return!1!==f};var w={thin:1,medium:3,thick:5};this.getOffset=function(){if(a.isfixed)return{top:parseFloat(a.win.css("top")),left:parseFloat(a.win.css("left"))};if(!a.viewport)return a.win.offset();var c=a.win.offset(),b=a.viewport.offset();return{top:c.top-b.top+a.viewport.scrollTop(),left:c.left-b.left+a.viewport.scrollLeft()}};this.updateScrollBar=function(c){if(a.ishwscroll)a.rail.css({height:a.win.innerHeight()}),a.railh&&a.railh.css({width:a.win.innerWidth()});
|
||||
else{var b=a.getOffset(),f=b.top,d=b.left,f=f+k(a.win,"border-top-width",!0);a.win.outerWidth();a.win.innerWidth();var d=d+(a.rail.align?a.win.outerWidth()-k(a.win,"border-right-width")-a.rail.width:k(a.win,"border-left-width")),e=a.opt.railoffset;e&&(e.top&&(f+=e.top),a.rail.align&&e.left&&(d+=e.left));a.locked||a.rail.css({top:f,left:d,height:c?c.h:a.win.innerHeight()});a.zoom&&a.zoom.css({top:f+1,left:1==a.rail.align?d-20:d+a.rail.width+4});a.railh&&!a.locked&&(f=b.top,d=b.left,c=a.railh.align?
|
||||
f+k(a.win,"border-top-width",!0)+a.win.innerHeight()-a.railh.height:f+k(a.win,"border-top-width",!0),d+=k(a.win,"border-left-width"),a.railh.css({top:c,left:d,width:a.railh.width}))}};this.doRailClick=function(c,b,f){var d;a.locked||(a.cancelEvent(c),b?(b=f?a.doScrollLeft:a.doScrollTop,d=f?(c.pageX-a.railh.offset().left-a.cursorwidth/2)*a.scrollratio.x:(c.pageY-a.rail.offset().top-a.cursorheight/2)*a.scrollratio.y,b(d)):(b=f?a.doScrollLeftBy:a.doScrollBy,d=f?a.scroll.x:a.scroll.y,c=f?c.pageX-a.railh.offset().left:
|
||||
c.pageY-a.rail.offset().top,f=f?a.view.w:a.view.h,d>=c?b(f):b(-f)))};a.hasanimationframe=s;a.hascancelanimationframe=v;a.hasanimationframe?a.hascancelanimationframe||(v=function(){a.cancelAnimationFrame=!0}):(s=function(a){return setTimeout(a,15-Math.floor(+new Date/1E3)%16)},v=clearInterval);this.init=function(){a.saved.css=[];if(d.isie7mobile||d.isoperamini)return!0;d.hasmstouch&&a.css(a.ispage?e("html"):a.win,{"-ms-touch-action":"none"});a.zindex="auto";a.zindex=!a.ispage&&"auto"==a.opt.zindex?
|
||||
h()||"auto":a.opt.zindex;!a.ispage&&"auto"!=a.zindex&&a.zindex>x&&(x=a.zindex);a.isie&&(0==a.zindex&&"auto"==a.opt.zindex)&&(a.zindex="auto");if(!a.ispage||!d.cantouch&&!d.isieold&&!d.isie9mobile){var c=a.docscroll;a.ispage&&(c=a.haswrapper?a.win:a.doc);d.isie9mobile||a.css(c,{"overflow-y":"hidden"});a.ispage&&d.isie7&&("BODY"==a.doc[0].nodeName?a.css(e("html"),{"overflow-y":"hidden"}):"HTML"==a.doc[0].nodeName&&a.css(e("body"),{"overflow-y":"hidden"}));d.isios&&(!a.ispage&&!a.haswrapper)&&a.css(e("body"),
|
||||
{"-webkit-overflow-scrolling":"touch"});var b=e(document.createElement("div"));b.css({position:"relative",top:0,"float":"right",width:a.opt.cursorwidth,height:"0px","background-color":a.opt.cursorcolor,border:a.opt.cursorborder,"background-clip":"padding-box","-webkit-border-radius":a.opt.cursorborderradius,"-moz-border-radius":a.opt.cursorborderradius,"border-radius":a.opt.cursorborderradius});b.hborder=parseFloat(b.outerHeight()-b.innerHeight());a.cursor=b;var f=e(document.createElement("div"));
|
||||
f.attr("id",a.id);f.addClass("nicescroll-rails");var u,k,g=["left","right"],l;for(l in g)k=g[l],(u=a.opt.railpadding[k])?f.css("padding-"+k,u+"px"):a.opt.railpadding[k]=0;f.append(b);f.width=Math.max(parseFloat(a.opt.cursorwidth),b.outerWidth())+a.opt.railpadding.left+a.opt.railpadding.right;f.css({width:f.width+"px",zIndex:a.zindex,background:a.opt.background,cursor:"default"});f.visibility=!0;f.scrollable=!0;f.align="left"==a.opt.railalign?0:1;a.rail=f;b=a.rail.drag=!1;a.opt.boxzoom&&(!a.ispage&&
|
||||
!d.isieold)&&(b=document.createElement("div"),a.bind(b,"click",a.doZoom),a.zoom=e(b),a.zoom.css({cursor:"pointer","z-index":a.zindex,backgroundImage:"url("+a.opt.scriptpath+"zoomico.png)",height:18,width:18,backgroundPosition:"0px 0px"}),a.opt.dblclickzoom&&a.bind(a.win,"dblclick",a.doZoom),d.cantouch&&a.opt.gesturezoom&&(a.ongesturezoom=function(c){1.5<c.scale&&a.doZoomIn(c);0.8>c.scale&&a.doZoomOut(c);return a.cancelEvent(c)},a.bind(a.win,"gestureend",a.ongesturezoom)));a.railh=!1;if(a.opt.horizrailenabled){a.css(c,
|
||||
{"overflow-x":"hidden"});b=e(document.createElement("div"));b.css({position:"relative",top:0,height:a.opt.cursorwidth,width:"0px","background-color":a.opt.cursorcolor,border:a.opt.cursorborder,"background-clip":"padding-box","-webkit-border-radius":a.opt.cursorborderradius,"-moz-border-radius":a.opt.cursorborderradius,"border-radius":a.opt.cursorborderradius});b.wborder=parseFloat(b.outerWidth()-b.innerWidth());a.cursorh=b;var m=e(document.createElement("div"));m.attr("id",a.id+"-hr");m.addClass("nicescroll-rails");
|
||||
m.height=Math.max(parseFloat(a.opt.cursorwidth),b.outerHeight());m.css({height:m.height+"px",zIndex:a.zindex,background:a.opt.background});m.append(b);m.visibility=!0;m.scrollable=!0;m.align="top"==a.opt.railvalign?0:1;a.railh=m;a.railh.drag=!1}a.ispage?(f.css({position:"fixed",top:"0px",height:"100%"}),f.align?f.css({right:"0px"}):f.css({left:"0px"}),a.body.append(f),a.railh&&(m.css({position:"fixed",left:"0px",width:"100%"}),m.align?m.css({bottom:"0px"}):m.css({top:"0px"}),a.body.append(m))):(a.ishwscroll?
|
||||
("static"==a.win.css("position")&&a.css(a.win,{position:"relative"}),c="HTML"==a.win[0].nodeName?a.body:a.win,a.zoom&&(a.zoom.css({position:"absolute",top:1,right:0,"margin-right":f.width+4}),c.append(a.zoom)),f.css({position:"absolute",top:0}),f.align?f.css({right:0}):f.css({left:0}),c.append(f),m&&(m.css({position:"absolute",left:0,bottom:0}),m.align?m.css({bottom:0}):m.css({top:0}),c.append(m))):(a.isfixed="fixed"==a.win.css("position"),c=a.isfixed?"fixed":"absolute",a.isfixed||(a.viewport=a.getViewport(a.win[0])),
|
||||
a.viewport&&(a.body=a.viewport,!1==/fixed|relative|absolute/.test(a.viewport.css("position"))&&a.css(a.viewport,{position:"relative"})),f.css({position:c}),a.zoom&&a.zoom.css({position:c}),a.updateScrollBar(),a.body.append(f),a.zoom&&a.body.append(a.zoom),a.railh&&(m.css({position:c}),a.body.append(m))),d.isios&&a.css(a.win,{"-webkit-tap-highlight-color":"rgba(0,0,0,0)","-webkit-touch-callout":"none"}),d.isie&&a.opt.disableoutline&&a.win.attr("hideFocus","true"),d.iswebkit&&a.opt.disableoutline&&
|
||||
a.win.css({outline:"none"}));!1===a.opt.autohidemode?(a.autohidedom=!1,a.rail.css({opacity:a.opt.cursoropacitymax}),a.railh&&a.railh.css({opacity:a.opt.cursoropacitymax})):!0===a.opt.autohidemode||"leave"===a.opt.autohidemode?(a.autohidedom=e().add(a.rail),d.isie8&&(a.autohidedom=a.autohidedom.add(a.cursor)),a.railh&&(a.autohidedom=a.autohidedom.add(a.railh)),a.railh&&d.isie8&&(a.autohidedom=a.autohidedom.add(a.cursorh))):"scroll"==a.opt.autohidemode?(a.autohidedom=e().add(a.rail),a.railh&&(a.autohidedom=
|
||||
a.autohidedom.add(a.railh))):"cursor"==a.opt.autohidemode?(a.autohidedom=e().add(a.cursor),a.railh&&(a.autohidedom=a.autohidedom.add(a.cursorh))):"hidden"==a.opt.autohidemode&&(a.autohidedom=!1,a.hide(),a.locked=!1);if(d.isie9mobile)a.scrollmom=new H(a),a.onmangotouch=function(c){c=a.getScrollTop();var b=a.getScrollLeft();if(c==a.scrollmom.lastscrolly&&b==a.scrollmom.lastscrollx)return!0;var f=c-a.mangotouch.sy,d=b-a.mangotouch.sx;if(0!=Math.round(Math.sqrt(Math.pow(d,2)+Math.pow(f,2)))){var n=0>
|
||||
f?-1:1,e=0>d?-1:1,h=+new Date;a.mangotouch.lazy&&clearTimeout(a.mangotouch.lazy);80<h-a.mangotouch.tm||a.mangotouch.dry!=n||a.mangotouch.drx!=e?(a.scrollmom.stop(),a.scrollmom.reset(b,c),a.mangotouch.sy=c,a.mangotouch.ly=c,a.mangotouch.sx=b,a.mangotouch.lx=b,a.mangotouch.dry=n,a.mangotouch.drx=e,a.mangotouch.tm=h):(a.scrollmom.stop(),a.scrollmom.update(a.mangotouch.sx-d,a.mangotouch.sy-f),a.mangotouch.tm=h,f=Math.max(Math.abs(a.mangotouch.ly-c),Math.abs(a.mangotouch.lx-b)),a.mangotouch.ly=c,a.mangotouch.lx=
|
||||
b,2<f&&(a.mangotouch.lazy=setTimeout(function(){a.mangotouch.lazy=!1;a.mangotouch.dry=0;a.mangotouch.drx=0;a.mangotouch.tm=0;a.scrollmom.doMomentum(30)},100)))}},f=a.getScrollTop(),m=a.getScrollLeft(),a.mangotouch={sy:f,ly:f,dry:0,sx:m,lx:m,drx:0,lazy:!1,tm:0},a.bind(a.docscroll,"scroll",a.onmangotouch);else{if(d.cantouch||a.istouchcapable||a.opt.touchbehavior||d.hasmstouch){a.scrollmom=new H(a);a.ontouchstart=function(c){if(c.pointerType&&2!=c.pointerType)return!1;a.hasmoving=!1;if(!a.locked){if(d.hasmstouch)for(var b=
|
||||
c.target?c.target:!1;b;){var f=e(b).getNiceScroll();if(0<f.length&&f[0].me==a.me)break;if(0<f.length)return!1;if("DIV"==b.nodeName&&b.id==a.id)break;b=b.parentNode?b.parentNode:!1}a.cancelScroll();if((b=a.getTarget(c))&&/INPUT/i.test(b.nodeName)&&/range/i.test(b.type))return a.stopPropagation(c);!("clientX"in c)&&"changedTouches"in c&&(c.clientX=c.changedTouches[0].clientX,c.clientY=c.changedTouches[0].clientY);a.forcescreen&&(f=c,c={original:c.original?c.original:c},c.clientX=f.screenX,c.clientY=
|
||||
f.screenY);a.rail.drag={x:c.clientX,y:c.clientY,sx:a.scroll.x,sy:a.scroll.y,st:a.getScrollTop(),sl:a.getScrollLeft(),pt:2,dl:!1};if(a.ispage||!a.opt.directionlockdeadzone)a.rail.drag.dl="f";else{var f=e(window).width(),n=e(window).height(),h=Math.max(document.body.scrollWidth,document.documentElement.scrollWidth),k=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight),n=Math.max(0,k-n),f=Math.max(0,h-f);a.rail.drag.ck=!a.rail.scrollable&&a.railh.scrollable?0<n?"v":!1:a.rail.scrollable&&
|
||||
!a.railh.scrollable?0<f?"h":!1:!1;a.rail.drag.ck||(a.rail.drag.dl="f")}a.opt.touchbehavior&&(a.isiframe&&d.isie)&&(f=a.win.position(),a.rail.drag.x+=f.left,a.rail.drag.y+=f.top);a.hasmoving=!1;a.lastmouseup=!1;a.scrollmom.reset(c.clientX,c.clientY);if(!d.cantouch&&!this.istouchcapable&&!d.hasmstouch){if(!b||!/INPUT|SELECT|TEXTAREA/i.test(b.nodeName))return!a.ispage&&d.hasmousecapture&&b.setCapture(),a.opt.touchbehavior?(b.onclick&&!b._onclick&&(b._onclick=b.onclick,b.onclick=function(c){if(a.hasmoving)return!1;
|
||||
b._onclick.call(this,c)}),a.cancelEvent(c)):a.stopPropagation(c);/SUBMIT|CANCEL|BUTTON/i.test(e(b).attr("type"))&&(pc={tg:b,click:!1},a.preventclick=pc)}}};a.ontouchend=function(c){if(c.pointerType&&2!=c.pointerType)return!1;if(a.rail.drag&&2==a.rail.drag.pt&&(a.scrollmom.doMomentum(),a.rail.drag=!1,a.hasmoving&&(a.lastmouseup=!0,a.hideCursor(),d.hasmousecapture&&document.releaseCapture(),!d.cantouch)))return a.cancelEvent(c)};var q=a.opt.touchbehavior&&a.isiframe&&!d.hasmousecapture;a.ontouchmove=
|
||||
function(c,b){if(c.pointerType&&2!=c.pointerType)return!1;if(a.rail.drag&&2==a.rail.drag.pt){if(d.cantouch&&"undefined"==typeof c.original)return!0;a.hasmoving=!0;a.preventclick&&!a.preventclick.click&&(a.preventclick.click=a.preventclick.tg.onclick||!1,a.preventclick.tg.onclick=a.onpreventclick);c=e.extend({original:c},c);"changedTouches"in c&&(c.clientX=c.changedTouches[0].clientX,c.clientY=c.changedTouches[0].clientY);if(a.forcescreen){var f=c;c={original:c.original?c.original:c};c.clientX=f.screenX;
|
||||
c.clientY=f.screenY}f=ofy=0;if(q&&!b){var n=a.win.position(),f=-n.left;ofy=-n.top}var h=c.clientY+ofy,n=h-a.rail.drag.y,k=c.clientX+f,u=k-a.rail.drag.x,g=a.rail.drag.st-n;a.ishwscroll&&a.opt.bouncescroll?0>g?g=Math.round(g/2):g>a.page.maxh&&(g=a.page.maxh+Math.round((g-a.page.maxh)/2)):(0>g&&(h=g=0),g>a.page.maxh&&(g=a.page.maxh,h=0));if(a.railh&&a.railh.scrollable){var l=a.rail.drag.sl-u;a.ishwscroll&&a.opt.bouncescroll?0>l?l=Math.round(l/2):l>a.page.maxw&&(l=a.page.maxw+Math.round((l-a.page.maxw)/
|
||||
2)):(0>l&&(k=l=0),l>a.page.maxw&&(l=a.page.maxw,k=0))}f=!1;if(a.rail.drag.dl)f=!0,"v"==a.rail.drag.dl?l=a.rail.drag.sl:"h"==a.rail.drag.dl&&(g=a.rail.drag.st);else{var n=Math.abs(n),u=Math.abs(u),m=a.opt.directionlockdeadzone;if("v"==a.rail.drag.ck){if(n>m&&u<=0.3*n)return a.rail.drag=!1,!0;u>m&&(a.rail.drag.dl="f",e("body").scrollTop(e("body").scrollTop()))}else if("h"==a.rail.drag.ck){if(u>m&&n<=0.3*u)return a.rail.drag=!1,!0;n>m&&(a.rail.drag.dl="f",e("body").scrollLeft(e("body").scrollLeft()))}}a.synched("touchmove",
|
||||
function(){a.rail.drag&&2==a.rail.drag.pt&&(a.prepareTransition&&a.prepareTransition(0),a.rail.scrollable&&a.setScrollTop(g),a.scrollmom.update(k,h),a.railh&&a.railh.scrollable?(a.setScrollLeft(l),a.showCursor(g,l)):a.showCursor(g),d.isie10&&document.selection.clear())});d.ischrome&&a.istouchcapable&&(f=!1);if(f)return a.cancelEvent(c)}}}a.onmousedown=function(c,b){if(!(a.rail.drag&&1!=a.rail.drag.pt)){if(a.locked)return a.cancelEvent(c);a.cancelScroll();a.rail.drag={x:c.clientX,y:c.clientY,sx:a.scroll.x,
|
||||
sy:a.scroll.y,pt:1,hr:!!b};var f=a.getTarget(c);!a.ispage&&d.hasmousecapture&&f.setCapture();a.isiframe&&!d.hasmousecapture&&(a.saved.csspointerevents=a.doc.css("pointer-events"),a.css(a.doc,{"pointer-events":"none"}));a.hasmoving=!1;return a.cancelEvent(c)}};a.onmouseup=function(c){if(a.rail.drag&&(d.hasmousecapture&&document.releaseCapture(),a.isiframe&&!d.hasmousecapture&&a.doc.css("pointer-events",a.saved.csspointerevents),1==a.rail.drag.pt))return a.rail.drag=!1,a.hasmoving&&a.triggerScrollEnd(),
|
||||
a.cancelEvent(c)};a.onmousemove=function(c){if(a.rail.drag&&1==a.rail.drag.pt){if(d.ischrome&&0==c.which)return a.onmouseup(c);a.cursorfreezed=!0;a.hasmoving=!0;if(a.rail.drag.hr){a.scroll.x=a.rail.drag.sx+(c.clientX-a.rail.drag.x);0>a.scroll.x&&(a.scroll.x=0);var b=a.scrollvaluemaxw;a.scroll.x>b&&(a.scroll.x=b)}else a.scroll.y=a.rail.drag.sy+(c.clientY-a.rail.drag.y),0>a.scroll.y&&(a.scroll.y=0),b=a.scrollvaluemax,a.scroll.y>b&&(a.scroll.y=b);a.synched("mousemove",function(){a.rail.drag&&1==a.rail.drag.pt&&
|
||||
(a.showCursor(),a.rail.drag.hr?a.doScrollLeft(Math.round(a.scroll.x*a.scrollratio.x),a.opt.cursordragspeed):a.doScrollTop(Math.round(a.scroll.y*a.scrollratio.y),a.opt.cursordragspeed))});return a.cancelEvent(c)}};if(d.cantouch||a.opt.touchbehavior)a.onpreventclick=function(c){if(a.preventclick)return a.preventclick.tg.onclick=a.preventclick.click,a.preventclick=!1,a.cancelEvent(c)},a.bind(a.win,"mousedown",a.ontouchstart),a.onclick=d.isios?!1:function(c){return a.lastmouseup?(a.lastmouseup=!1,a.cancelEvent(c)):
|
||||
!0},a.opt.grabcursorenabled&&d.cursorgrabvalue&&(a.css(a.ispage?a.doc:a.win,{cursor:d.cursorgrabvalue}),a.css(a.rail,{cursor:d.cursorgrabvalue}));else{var p=function(c){if(a.selectiondrag){if(c){var b=a.win.outerHeight();c=c.pageY-a.selectiondrag.top;0<c&&c<b&&(c=0);c>=b&&(c-=b);a.selectiondrag.df=c}0!=a.selectiondrag.df&&(a.doScrollBy(2*-Math.floor(a.selectiondrag.df/6)),a.debounced("doselectionscroll",function(){p()},50))}};a.hasTextSelected="getSelection"in document?function(){return 0<document.getSelection().rangeCount}:
|
||||
"selection"in document?function(){return"None"!=document.selection.type}:function(){return!1};a.onselectionstart=function(c){a.ispage||(a.selectiondrag=a.win.offset())};a.onselectionend=function(c){a.selectiondrag=!1};a.onselectiondrag=function(c){a.selectiondrag&&a.hasTextSelected()&&a.debounced("selectionscroll",function(){p(c)},250)}}d.hasmstouch&&(a.css(a.rail,{"-ms-touch-action":"none"}),a.css(a.cursor,{"-ms-touch-action":"none"}),a.bind(a.win,"MSPointerDown",a.ontouchstart),a.bind(document,
|
||||
"MSPointerUp",a.ontouchend),a.bind(document,"MSPointerMove",a.ontouchmove),a.bind(a.cursor,"MSGestureHold",function(a){a.preventDefault()}),a.bind(a.cursor,"contextmenu",function(a){a.preventDefault()}));this.istouchcapable&&(a.bind(a.win,"touchstart",a.ontouchstart),a.bind(document,"touchend",a.ontouchend),a.bind(document,"touchcancel",a.ontouchend),a.bind(document,"touchmove",a.ontouchmove));a.bind(a.cursor,"mousedown",a.onmousedown);a.bind(a.cursor,"mouseup",a.onmouseup);a.railh&&(a.bind(a.cursorh,
|
||||
"mousedown",function(c){a.onmousedown(c,!0)}),a.bind(a.cursorh,"mouseup",a.onmouseup));if(a.opt.cursordragontouch||!d.cantouch&&!a.opt.touchbehavior)a.rail.css({cursor:"default"}),a.railh&&a.railh.css({cursor:"default"}),a.jqbind(a.rail,"mouseenter",function(){if(!a.win.is(":visible"))return!1;a.canshowonmouseevent&&a.showCursor();a.rail.active=!0}),a.jqbind(a.rail,"mouseleave",function(){a.rail.active=!1;a.rail.drag||a.hideCursor()}),a.opt.sensitiverail&&(a.bind(a.rail,"click",function(c){a.doRailClick(c,
|
||||
!1,!1)}),a.bind(a.rail,"dblclick",function(c){a.doRailClick(c,!0,!1)}),a.bind(a.cursor,"click",function(c){a.cancelEvent(c)}),a.bind(a.cursor,"dblclick",function(c){a.cancelEvent(c)})),a.railh&&(a.jqbind(a.railh,"mouseenter",function(){if(!a.win.is(":visible"))return!1;a.canshowonmouseevent&&a.showCursor();a.rail.active=!0}),a.jqbind(a.railh,"mouseleave",function(){a.rail.active=!1;a.rail.drag||a.hideCursor()}),a.opt.sensitiverail&&(a.bind(a.railh,"click",function(c){a.doRailClick(c,!1,!0)}),a.bind(a.railh,
|
||||
"dblclick",function(c){a.doRailClick(c,!0,!0)}),a.bind(a.cursorh,"click",function(c){a.cancelEvent(c)}),a.bind(a.cursorh,"dblclick",function(c){a.cancelEvent(c)})));!d.cantouch&&!a.opt.touchbehavior?(a.bind(d.hasmousecapture?a.win:document,"mouseup",a.onmouseup),a.bind(document,"mousemove",a.onmousemove),a.onclick&&a.bind(document,"click",a.onclick),!a.ispage&&a.opt.enablescrollonselection&&(a.bind(a.win[0],"mousedown",a.onselectionstart),a.bind(document,"mouseup",a.onselectionend),a.bind(a.cursor,
|
||||
"mouseup",a.onselectionend),a.cursorh&&a.bind(a.cursorh,"mouseup",a.onselectionend),a.bind(document,"mousemove",a.onselectiondrag)),a.zoom&&(a.jqbind(a.zoom,"mouseenter",function(){a.canshowonmouseevent&&a.showCursor();a.rail.active=!0}),a.jqbind(a.zoom,"mouseleave",function(){a.rail.active=!1;a.rail.drag||a.hideCursor()}))):(a.bind(d.hasmousecapture?a.win:document,"mouseup",a.ontouchend),a.bind(document,"mousemove",a.ontouchmove),a.onclick&&a.bind(document,"click",a.onclick),a.opt.cursordragontouch&&
|
||||
(a.bind(a.cursor,"mousedown",a.onmousedown),a.bind(a.cursor,"mousemove",a.onmousemove),a.cursorh&&a.bind(a.cursorh,"mousedown",function(c){a.onmousedown(c,!0)}),a.cursorh&&a.bind(a.cursorh,"mousemove",a.onmousemove)));a.opt.enablemousewheel&&(a.isiframe||a.bind(d.isie&&a.ispage?document:a.win,"mousewheel",a.onmousewheel),a.bind(a.rail,"mousewheel",a.onmousewheel),a.railh&&a.bind(a.railh,"mousewheel",a.onmousewheelhr));!a.ispage&&(!d.cantouch&&!/HTML|^BODY/.test(a.win[0].nodeName))&&(a.win.attr("tabindex")||
|
||||
a.win.attr({tabindex:J++}),a.jqbind(a.win,"focus",function(c){y=a.getTarget(c).id||!0;a.hasfocus=!0;a.canshowonmouseevent&&a.noticeCursor()}),a.jqbind(a.win,"blur",function(c){y=!1;a.hasfocus=!1}),a.jqbind(a.win,"mouseenter",function(c){C=a.getTarget(c).id||!0;a.hasmousefocus=!0;a.canshowonmouseevent&&a.noticeCursor()}),a.jqbind(a.win,"mouseleave",function(){C=!1;a.hasmousefocus=!1;a.rail.drag||a.hideCursor()}))}a.onkeypress=function(c){if(a.locked&&0==a.page.maxh)return!0;c=c?c:window.e;var b=a.getTarget(c);
|
||||
if(b&&/INPUT|TEXTAREA|SELECT|OPTION/.test(b.nodeName)&&(!b.getAttribute("type")&&!b.type||!/submit|button|cancel/i.tp)||e(b).attr("contenteditable"))return!0;if(a.hasfocus||a.hasmousefocus&&!y||a.ispage&&!y&&!C){b=c.keyCode;if(a.locked&&27!=b)return a.cancelEvent(c);var f=c.ctrlKey||!1,n=c.shiftKey||!1,d=!1;switch(b){case 38:case 63233:a.doScrollBy(72);d=!0;break;case 40:case 63235:a.doScrollBy(-72);d=!0;break;case 37:case 63232:a.railh&&(f?a.doScrollLeft(0):a.doScrollLeftBy(72),d=!0);break;case 39:case 63234:a.railh&&
|
||||
(f?a.doScrollLeft(a.page.maxw):a.doScrollLeftBy(-72),d=!0);break;case 33:case 63276:a.doScrollBy(a.view.h);d=!0;break;case 34:case 63277:a.doScrollBy(-a.view.h);d=!0;break;case 36:case 63273:a.railh&&f?a.doScrollPos(0,0):a.doScrollTo(0);d=!0;break;case 35:case 63275:a.railh&&f?a.doScrollPos(a.page.maxw,a.page.maxh):a.doScrollTo(a.page.maxh);d=!0;break;case 32:a.opt.spacebarenabled&&(n?a.doScrollBy(a.view.h):a.doScrollBy(-a.view.h),d=!0);break;case 27:a.zoomactive&&(a.doZoom(),d=!0)}if(d)return a.cancelEvent(c)}};
|
||||
a.opt.enablekeyboard&&a.bind(document,d.isopera&&!d.isopera12?"keypress":"keydown",a.onkeypress);a.bind(document,"keydown",function(c){c.ctrlKey&&(a.wheelprevented=!0)});a.bind(document,"keyup",function(c){c.ctrlKey||(a.wheelprevented=!1)});a.bind(window,"resize",a.lazyResize);a.bind(window,"orientationchange",a.lazyResize);a.bind(window,"load",a.lazyResize);if(d.ischrome&&!a.ispage&&!a.haswrapper){var r=a.win.attr("style"),f=parseFloat(a.win.css("width"))+1;a.win.css("width",f);a.synched("chromefix",
|
||||
function(){a.win.attr("style",r)})}a.onAttributeChange=function(c){a.lazyResize(250)};!a.ispage&&!a.haswrapper&&(!1!==z?(a.observer=new z(function(c){c.forEach(a.onAttributeChange)}),a.observer.observe(a.win[0],{childList:!0,characterData:!1,attributes:!0,subtree:!1}),a.observerremover=new z(function(c){c.forEach(function(c){if(0<c.removedNodes.length)for(var b in c.removedNodes)if(c.removedNodes[b]==a.win[0])return a.remove()})}),a.observerremover.observe(a.win[0].parentNode,{childList:!0,characterData:!1,
|
||||
attributes:!1,subtree:!1})):(a.bind(a.win,d.isie&&!d.isie9?"propertychange":"DOMAttrModified",a.onAttributeChange),d.isie9&&a.win[0].attachEvent("onpropertychange",a.onAttributeChange),a.bind(a.win,"DOMNodeRemoved",function(c){c.target==a.win[0]&&a.remove()})));!a.ispage&&a.opt.boxzoom&&a.bind(window,"resize",a.resizeZoom);a.istextarea&&a.bind(a.win,"mouseup",a.lazyResize);a.lazyResize(30)}if("IFRAME"==this.doc[0].nodeName){var I=function(c){a.iframexd=!1;try{var b="contentDocument"in this?this.contentDocument:
|
||||
this.contentWindow.document}catch(f){a.iframexd=!0,b=!1}if(a.iframexd)return"console"in window&&console.log("NiceScroll error: policy restriced iframe"),!0;a.forcescreen=!0;a.isiframe&&(a.iframe={doc:e(b),html:a.doc.contents().find("html")[0],body:a.doc.contents().find("body")[0]},a.getContentSize=function(){return{w:Math.max(a.iframe.html.scrollWidth,a.iframe.body.scrollWidth),h:Math.max(a.iframe.html.scrollHeight,a.iframe.body.scrollHeight)}},a.docscroll=e(a.iframe.body));!d.isios&&(a.opt.iframeautoresize&&
|
||||
!a.isiframe)&&(a.win.scrollTop(0),a.doc.height(""),c=Math.max(b.getElementsByTagName("html")[0].scrollHeight,b.body.scrollHeight),a.doc.height(c));a.lazyResize(30);d.isie7&&a.css(e(a.iframe.html),{"overflow-y":"hidden"});a.css(e(a.iframe.body),{"overflow-y":"hidden"});d.isios&&a.haswrapper&&a.css(e(b.body),{"-webkit-transform":"translate3d(0,0,0)"});"contentWindow"in this?a.bind(this.contentWindow,"scroll",a.onscroll):a.bind(b,"scroll",a.onscroll);a.opt.enablemousewheel&&a.bind(b,"mousewheel",a.onmousewheel);
|
||||
a.opt.enablekeyboard&&a.bind(b,d.isopera?"keypress":"keydown",a.onkeypress);if(d.cantouch||a.opt.touchbehavior)a.bind(b,"mousedown",a.ontouchstart),a.bind(b,"mousemove",function(c){a.ontouchmove(c,!0)}),a.opt.grabcursorenabled&&d.cursorgrabvalue&&a.css(e(b.body),{cursor:d.cursorgrabvalue});a.bind(b,"mouseup",a.ontouchend);a.zoom&&(a.opt.dblclickzoom&&a.bind(b,"dblclick",a.doZoom),a.ongesturezoom&&a.bind(b,"gestureend",a.ongesturezoom))};this.doc[0].readyState&&"complete"==this.doc[0].readyState&&
|
||||
setTimeout(function(){I.call(a.doc[0],!1)},500);a.bind(this.doc,"load",I)}};this.showCursor=function(c,b){a.cursortimeout&&(clearTimeout(a.cursortimeout),a.cursortimeout=0);if(a.rail){a.autohidedom&&(a.autohidedom.stop().css({opacity:a.opt.cursoropacitymax}),a.cursoractive=!0);if(!a.rail.drag||1!=a.rail.drag.pt)"undefined"!=typeof c&&!1!==c&&(a.scroll.y=Math.round(1*c/a.scrollratio.y)),"undefined"!=typeof b&&(a.scroll.x=Math.round(1*b/a.scrollratio.x));a.cursor.css({height:a.cursorheight,top:a.scroll.y});
|
||||
a.cursorh&&(!a.rail.align&&a.rail.visibility?a.cursorh.css({width:a.cursorwidth,left:a.scroll.x+a.rail.width}):a.cursorh.css({width:a.cursorwidth,left:a.scroll.x}),a.cursoractive=!0);a.zoom&&a.zoom.stop().css({opacity:a.opt.cursoropacitymax})}};this.hideCursor=function(c){!a.cursortimeout&&(a.rail&&a.autohidedom&&!(a.hasmousefocus&&"leave"==a.opt.autohidemode))&&(a.cursortimeout=setTimeout(function(){if(!a.rail.active||!a.showonmouseevent)a.autohidedom.stop().animate({opacity:a.opt.cursoropacitymin}),
|
||||
a.zoom&&a.zoom.stop().animate({opacity:a.opt.cursoropacitymin}),a.cursoractive=!1;a.cursortimeout=0},c||a.opt.hidecursordelay))};this.noticeCursor=function(c,b,f){a.showCursor(b,f);a.rail.active||a.hideCursor(c)};this.getContentSize=a.ispage?function(){return{w:Math.max(document.body.scrollWidth,document.documentElement.scrollWidth),h:Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}}:a.haswrapper?function(){return{w:a.doc.outerWidth()+parseInt(a.win.css("paddingLeft"))+
|
||||
parseInt(a.win.css("paddingRight")),h:a.doc.outerHeight()+parseInt(a.win.css("paddingTop"))+parseInt(a.win.css("paddingBottom"))}}:function(){return{w:a.docscroll[0].scrollWidth,h:a.docscroll[0].scrollHeight}};this.onResize=function(c,b){if(!a||!a.win)return!1;if(!a.haswrapper&&!a.ispage){if("none"==a.win.css("display"))return a.visibility&&a.hideRail().hideRailHr(),!1;!a.hidden&&!a.visibility&&a.showRail().showRailHr()}var f=a.page.maxh,d=a.page.maxw,e=a.view.w;a.view={w:a.ispage?a.win.width():parseInt(a.win[0].clientWidth),
|
||||
h:a.ispage?a.win.height():parseInt(a.win[0].clientHeight)};a.page=b?b:a.getContentSize();a.page.maxh=Math.max(0,a.page.h-a.view.h);a.page.maxw=Math.max(0,a.page.w-a.view.w);if(a.page.maxh==f&&a.page.maxw==d&&a.view.w==e){if(a.ispage)return a;f=a.win.offset();if(a.lastposition&&(d=a.lastposition,d.top==f.top&&d.left==f.left))return a;a.lastposition=f}0==a.page.maxh?(a.hideRail(),a.scrollvaluemax=0,a.scroll.y=0,a.scrollratio.y=0,a.cursorheight=0,a.setScrollTop(0),a.rail.scrollable=!1):a.rail.scrollable=
|
||||
!0;0==a.page.maxw?(a.hideRailHr(),a.scrollvaluemaxw=0,a.scroll.x=0,a.scrollratio.x=0,a.cursorwidth=0,a.setScrollLeft(0),a.railh.scrollable=!1):a.railh.scrollable=!0;a.locked=0==a.page.maxh&&0==a.page.maxw;if(a.locked)return a.ispage||a.updateScrollBar(a.view),!1;!a.hidden&&!a.visibility?a.showRail().showRailHr():!a.hidden&&!a.railh.visibility&&a.showRailHr();a.istextarea&&(a.win.css("resize")&&"none"!=a.win.css("resize"))&&(a.view.h-=20);a.cursorheight=Math.min(a.view.h,Math.round(a.view.h*(a.view.h/
|
||||
a.page.h)));a.cursorheight=a.opt.cursorfixedheight?a.opt.cursorfixedheight:Math.max(a.opt.cursorminheight,a.cursorheight);a.cursorwidth=Math.min(a.view.w,Math.round(a.view.w*(a.view.w/a.page.w)));a.cursorwidth=a.opt.cursorfixedheight?a.opt.cursorfixedheight:Math.max(a.opt.cursorminheight,a.cursorwidth);a.scrollvaluemax=a.view.h-a.cursorheight-a.cursor.hborder;a.railh&&(a.railh.width=0<a.page.maxh?a.view.w-a.rail.width:a.view.w,a.scrollvaluemaxw=a.railh.width-a.cursorwidth-a.cursorh.wborder);a.ispage||
|
||||
a.updateScrollBar(a.view);a.scrollratio={x:a.page.maxw/a.scrollvaluemaxw,y:a.page.maxh/a.scrollvaluemax};a.getScrollTop()>a.page.maxh?a.doScrollTop(a.page.maxh):(a.scroll.y=Math.round(a.getScrollTop()*(1/a.scrollratio.y)),a.scroll.x=Math.round(a.getScrollLeft()*(1/a.scrollratio.x)),a.cursoractive&&a.noticeCursor());a.scroll.y&&0==a.getScrollTop()&&a.doScrollTo(Math.floor(a.scroll.y*a.scrollratio.y));return a};this.resize=a.onResize;this.lazyResize=function(c){c=isNaN(c)?30:c;a.delayed("resize",a.resize,
|
||||
c);return a};this._bind=function(c,b,f,d){a.events.push({e:c,n:b,f:f,b:d,q:!1});c.addEventListener?c.addEventListener(b,f,d||!1):c.attachEvent?c.attachEvent("on"+b,f):c["on"+b]=f};this.jqbind=function(c,b,f){a.events.push({e:c,n:b,f:f,q:!0});e(c).bind(b,f)};this.bind=function(c,b,f,e){var h="jquery"in c?c[0]:c;"mousewheel"==b?"onwheel"in a.win?a._bind(h,"wheel",f,e||!1):(c="undefined"!=typeof document.onmousewheel?"mousewheel":"DOMMouseScroll",l(h,c,f,e||!1),"DOMMouseScroll"==c&&l(h,"MozMousePixelScroll",
|
||||
f,e||!1)):h.addEventListener?(d.cantouch&&/mouseup|mousedown|mousemove/.test(b)&&a._bind(h,"mousedown"==b?"touchstart":"mouseup"==b?"touchend":"touchmove",function(a){if(a.touches){if(2>a.touches.length){var c=a.touches.length?a.touches[0]:a;c.original=a;f.call(this,c)}}else a.changedTouches&&(c=a.changedTouches[0],c.original=a,f.call(this,c))},e||!1),a._bind(h,b,f,e||!1),d.cantouch&&"mouseup"==b&&a._bind(h,"touchcancel",f,e||!1)):a._bind(h,b,function(c){if((c=c||window.event||!1)&&c.srcElement)c.target=
|
||||
c.srcElement;"pageY"in c||(c.pageX=c.clientX+document.documentElement.scrollLeft,c.pageY=c.clientY+document.documentElement.scrollTop);return!1===f.call(h,c)||!1===e?a.cancelEvent(c):!0})};this._unbind=function(a,b,f,d){a.removeEventListener?a.removeEventListener(b,f,d):a.detachEvent?a.detachEvent("on"+b,f):a["on"+b]=!1};this.unbindAll=function(){for(var c=0;c<a.events.length;c++){var b=a.events[c];b.q?b.e.unbind(b.n,b.f):a._unbind(b.e,b.n,b.f,b.b)}};this.cancelEvent=function(a){a=a.original?a.original:
|
||||
a?a:window.event||!1;if(!a)return!1;a.preventDefault&&a.preventDefault();a.stopPropagation&&a.stopPropagation();a.preventManipulation&&a.preventManipulation();a.cancelBubble=!0;a.cancel=!0;return a.returnValue=!1};this.stopPropagation=function(a){a=a.original?a.original:a?a:window.event||!1;if(!a)return!1;if(a.stopPropagation)return a.stopPropagation();a.cancelBubble&&(a.cancelBubble=!0);return!1};this.showRail=function(){if(0!=a.page.maxh&&(a.ispage||"none"!=a.win.css("display")))a.visibility=!0,
|
||||
a.rail.visibility=!0,a.rail.css("display","block");return a};this.showRailHr=function(){if(!a.railh)return a;if(0!=a.page.maxw&&(a.ispage||"none"!=a.win.css("display")))a.railh.visibility=!0,a.railh.css("display","block");return a};this.hideRail=function(){a.visibility=!1;a.rail.visibility=!1;a.rail.css("display","none");return a};this.hideRailHr=function(){if(!a.railh)return a;a.railh.visibility=!1;a.railh.css("display","none");return a};this.show=function(){a.hidden=!1;a.locked=!1;return a.showRail().showRailHr()};
|
||||
this.hide=function(){a.hidden=!0;a.locked=!0;return a.hideRail().hideRailHr()};this.toggle=function(){return a.hidden?a.show():a.hide()};this.remove=function(){a.stop();a.cursortimeout&&clearTimeout(a.cursortimeout);a.doZoomOut();a.unbindAll();d.isie9&&a.win[0].detachEvent("onpropertychange",a.onAttributeChange);!1!==a.observer&&a.observer.disconnect();!1!==a.observerremover&&a.observerremover.disconnect();a.events=null;a.cursor&&a.cursor.remove();a.cursorh&&a.cursorh.remove();a.rail&&a.rail.remove();
|
||||
a.railh&&a.railh.remove();a.zoom&&a.zoom.remove();for(var c=0;c<a.saved.css.length;c++){var b=a.saved.css[c];b[0].css(b[1],"undefined"==typeof b[2]?"":b[2])}a.saved=!1;a.me.data("__nicescroll","");var f=e.nicescroll;f.each(function(c){if(this&&this.id===a.id){delete f[c];for(var b=++c;b<f.length;b++,c++)f[c]=f[b];f.length--;f.length&&delete f[f.length]}});for(var h in a)a[h]=null,delete a[h];a=null};this.scrollstart=function(c){this.onscrollstart=c;return a};this.scrollend=function(c){this.onscrollend=
|
||||
c;return a};this.scrollcancel=function(c){this.onscrollcancel=c;return a};this.zoomin=function(c){this.onzoomin=c;return a};this.zoomout=function(c){this.onzoomout=c;return a};this.isScrollable=function(a){a=a.target?a.target:a;if("OPTION"==a.nodeName)return!0;for(;a&&1==a.nodeType&&!/^BODY|HTML/.test(a.nodeName);){var b=e(a),b=b.css("overflowY")||b.css("overflowX")||b.css("overflow")||"";if(/scroll|auto/.test(b))return a.clientHeight!=a.scrollHeight;a=a.parentNode?a.parentNode:!1}return!1};this.getViewport=
|
||||
function(a){for(a=a&&a.parentNode?a.parentNode:!1;a&&1==a.nodeType&&!/^BODY|HTML/.test(a.nodeName);){var b=e(a);if(/fixed|absolute/.test(b.css("position")))return b;var f=b.css("overflowY")||b.css("overflowX")||b.css("overflow")||"";if(/scroll|auto/.test(f)&&a.clientHeight!=a.scrollHeight||0<b.getNiceScroll().length)return b;a=a.parentNode?a.parentNode:!1}return a?e(a):!1};this.triggerScrollEnd=function(){if(a.onscrollend){var c=a.getScrollLeft(),b=a.getScrollTop();a.onscrollend.call(a,{type:"scrollend",
|
||||
current:{x:c,y:b},end:{x:c,y:b}})}};this.onmousewheel=function(c){if(!a.wheelprevented){if(a.locked)return a.debounced("checkunlock",a.resize,250),!0;if(a.rail.drag)return a.cancelEvent(c);"auto"==a.opt.oneaxismousemode&&0!=c.deltaX&&(a.opt.oneaxismousemode=!1);if(a.opt.oneaxismousemode&&0==c.deltaX&&!a.rail.scrollable)return a.railh&&a.railh.scrollable?a.onmousewheelhr(c):!0;var b=+new Date,f=!1;a.opt.preservenativescrolling&&a.checkarea+600<b&&(a.nativescrollingarea=a.isScrollable(c),f=!0);a.checkarea=
|
||||
b;if(a.nativescrollingarea)return!0;if(c=q(c,!1,f))a.checkarea=0;return c}};this.onmousewheelhr=function(c){if(!a.wheelprevented){if(a.locked||!a.railh.scrollable)return!0;if(a.rail.drag)return a.cancelEvent(c);var b=+new Date,f=!1;a.opt.preservenativescrolling&&a.checkarea+600<b&&(a.nativescrollingarea=a.isScrollable(c),f=!0);a.checkarea=b;return a.nativescrollingarea?!0:a.locked?a.cancelEvent(c):q(c,!0,f)}};this.stop=function(){a.cancelScroll();a.scrollmon&&a.scrollmon.stop();a.cursorfreezed=!1;
|
||||
a.scroll.y=Math.round(a.getScrollTop()*(1/a.scrollratio.y));a.noticeCursor();return a};this.getTransitionSpeed=function(b){var d=Math.round(10*a.opt.scrollspeed);b=Math.min(d,Math.round(b/20*a.opt.scrollspeed));return 20<b?b:0};a.opt.smoothscroll?a.ishwscroll&&d.hastransition&&a.opt.usetransition?(this.prepareTransition=function(b,e){var f=e?20<b?b:0:a.getTransitionSpeed(b),h=f?d.prefixstyle+"transform "+f+"ms ease-out":"";if(!a.lasttransitionstyle||a.lasttransitionstyle!=h)a.lasttransitionstyle=
|
||||
h,a.doc.css(d.transitionstyle,h);return f},this.doScrollLeft=function(b,d){var f=a.scrollrunning?a.newscrolly:a.getScrollTop();a.doScrollPos(b,f,d)},this.doScrollTop=function(b,d){var f=a.scrollrunning?a.newscrollx:a.getScrollLeft();a.doScrollPos(f,b,d)},this.doScrollPos=function(b,e,f){var h=a.getScrollTop(),g=a.getScrollLeft();(0>(a.newscrolly-h)*(e-h)||0>(a.newscrollx-g)*(b-g))&&a.cancelScroll();!1==a.opt.bouncescroll&&(0>e?e=0:e>a.page.maxh&&(e=a.page.maxh),0>b?b=0:b>a.page.maxw&&(b=a.page.maxw));
|
||||
if(a.scrollrunning&&b==a.newscrollx&&e==a.newscrolly)return!1;a.newscrolly=e;a.newscrollx=b;a.newscrollspeed=f||!1;if(a.timer)return!1;a.timer=setTimeout(function(){var f=a.getScrollTop(),h=a.getScrollLeft(),g,k;g=b-h;k=e-f;g=Math.round(Math.sqrt(Math.pow(g,2)+Math.pow(k,2)));g=a.newscrollspeed&&1<a.newscrollspeed?a.newscrollspeed:a.getTransitionSpeed(g);a.newscrollspeed&&1>=a.newscrollspeed&&(g*=a.newscrollspeed);a.prepareTransition(g,!0);a.timerscroll&&a.timerscroll.tm&&clearInterval(a.timerscroll.tm);
|
||||
0<g&&(!a.scrollrunning&&a.onscrollstart&&a.onscrollstart.call(a,{type:"scrollstart",current:{x:h,y:f},request:{x:b,y:e},end:{x:a.newscrollx,y:a.newscrolly},speed:g}),d.transitionend?a.scrollendtrapped||(a.scrollendtrapped=!0,a.bind(a.doc,d.transitionend,a.onScrollTransitionEnd,!1)):(a.scrollendtrapped&&clearTimeout(a.scrollendtrapped),a.scrollendtrapped=setTimeout(a.onScrollTransitionEnd,g)),a.timerscroll={bz:new BezierClass(f,a.newscrolly,g,0,0,0.58,1),bh:new BezierClass(h,a.newscrollx,g,0,0,0.58,
|
||||
1)},a.cursorfreezed||(a.timerscroll.tm=setInterval(function(){a.showCursor(a.getScrollTop(),a.getScrollLeft())},60)));a.synched("doScroll-set",function(){a.timer=0;a.scrollendtrapped&&(a.scrollrunning=!0);a.setScrollTop(a.newscrolly);a.setScrollLeft(a.newscrollx);if(!a.scrollendtrapped)a.onScrollTransitionEnd()})},50)},this.cancelScroll=function(){if(!a.scrollendtrapped)return!0;var b=a.getScrollTop(),e=a.getScrollLeft();a.scrollrunning=!1;d.transitionend||clearTimeout(d.transitionend);a.scrollendtrapped=
|
||||
!1;a._unbind(a.doc,d.transitionend,a.onScrollTransitionEnd);a.prepareTransition(0);a.setScrollTop(b);a.railh&&a.setScrollLeft(e);a.timerscroll&&a.timerscroll.tm&&clearInterval(a.timerscroll.tm);a.timerscroll=!1;a.cursorfreezed=!1;a.showCursor(b,e);return a},this.onScrollTransitionEnd=function(){a.scrollendtrapped&&a._unbind(a.doc,d.transitionend,a.onScrollTransitionEnd);a.scrollendtrapped=!1;a.prepareTransition(0);a.timerscroll&&a.timerscroll.tm&&clearInterval(a.timerscroll.tm);a.timerscroll=!1;var b=
|
||||
a.getScrollTop(),e=a.getScrollLeft();a.setScrollTop(b);a.railh&&a.setScrollLeft(e);a.noticeCursor(!1,b,e);a.cursorfreezed=!1;0>b?b=0:b>a.page.maxh&&(b=a.page.maxh);0>e?e=0:e>a.page.maxw&&(e=a.page.maxw);if(b!=a.newscrolly||e!=a.newscrollx)return a.doScrollPos(e,b,a.opt.snapbackspeed);a.onscrollend&&a.scrollrunning&&a.triggerScrollEnd();a.scrollrunning=!1}):(this.doScrollLeft=function(b,d){var f=a.scrollrunning?a.newscrolly:a.getScrollTop();a.doScrollPos(b,f,d)},this.doScrollTop=function(b,d){var f=
|
||||
a.scrollrunning?a.newscrollx:a.getScrollLeft();a.doScrollPos(f,b,d)},this.doScrollPos=function(b,d,f){function e(){if(a.cancelAnimationFrame)return!0;a.scrollrunning=!0;if(p=1-p)return a.timer=s(e)||1;var b=0,c=sy=a.getScrollTop();if(a.dst.ay){var c=a.bzscroll?a.dst.py+a.bzscroll.getNow()*a.dst.ay:a.newscrolly,f=c-sy;if(0>f&&c<a.newscrolly||0<f&&c>a.newscrolly)c=a.newscrolly;a.setScrollTop(c);c==a.newscrolly&&(b=1)}else b=1;var d=sx=a.getScrollLeft();if(a.dst.ax){d=a.bzscroll?a.dst.px+a.bzscroll.getNow()*
|
||||
a.dst.ax:a.newscrollx;f=d-sx;if(0>f&&d<a.newscrollx||0<f&&d>a.newscrollx)d=a.newscrollx;a.setScrollLeft(d);d==a.newscrollx&&(b+=1)}else b+=1;2==b?(a.timer=0,a.cursorfreezed=!1,a.bzscroll=!1,a.scrollrunning=!1,0>c?c=0:c>a.page.maxh&&(c=a.page.maxh),0>d?d=0:d>a.page.maxw&&(d=a.page.maxw),d!=a.newscrollx||c!=a.newscrolly?a.doScrollPos(d,c):a.onscrollend&&a.triggerScrollEnd()):a.timer=s(e)||1}d="undefined"==typeof d||!1===d?a.getScrollTop(!0):d;if(a.timer&&a.newscrolly==d&&a.newscrollx==b)return!0;a.timer&&
|
||||
v(a.timer);a.timer=0;var h=a.getScrollTop(),g=a.getScrollLeft();(0>(a.newscrolly-h)*(d-h)||0>(a.newscrollx-g)*(b-g))&&a.cancelScroll();a.newscrolly=d;a.newscrollx=b;if(!a.bouncescroll||!a.rail.visibility)0>a.newscrolly?a.newscrolly=0:a.newscrolly>a.page.maxh&&(a.newscrolly=a.page.maxh);if(!a.bouncescroll||!a.railh.visibility)0>a.newscrollx?a.newscrollx=0:a.newscrollx>a.page.maxw&&(a.newscrollx=a.page.maxw);a.dst={};a.dst.x=b-g;a.dst.y=d-h;a.dst.px=g;a.dst.py=h;var k=Math.round(Math.sqrt(Math.pow(a.dst.x,
|
||||
2)+Math.pow(a.dst.y,2)));a.dst.ax=a.dst.x/k;a.dst.ay=a.dst.y/k;var l=0,q=k;0==a.dst.x?(l=h,q=d,a.dst.ay=1,a.dst.py=0):0==a.dst.y&&(l=g,q=b,a.dst.ax=1,a.dst.px=0);k=a.getTransitionSpeed(k);f&&1>=f&&(k*=f);a.bzscroll=0<k?a.bzscroll?a.bzscroll.update(q,k):new BezierClass(l,q,k,0,1,0,1):!1;if(!a.timer){(h==a.page.maxh&&d>=a.page.maxh||g==a.page.maxw&&b>=a.page.maxw)&&a.checkContentSize();var p=1;a.cancelAnimationFrame=!1;a.timer=1;a.onscrollstart&&!a.scrollrunning&&a.onscrollstart.call(a,{type:"scrollstart",
|
||||
current:{x:g,y:h},request:{x:b,y:d},end:{x:a.newscrollx,y:a.newscrolly},speed:k});e();(h==a.page.maxh&&d>=h||g==a.page.maxw&&b>=g)&&a.checkContentSize();a.noticeCursor()}},this.cancelScroll=function(){a.timer&&v(a.timer);a.timer=0;a.bzscroll=!1;a.scrollrunning=!1;return a}):(this.doScrollLeft=function(b,d){var f=a.getScrollTop();a.doScrollPos(b,f,d)},this.doScrollTop=function(b,d){var f=a.getScrollLeft();a.doScrollPos(f,b,d)},this.doScrollPos=function(b,d,f){var e=b>a.page.maxw?a.page.maxw:b;0>e&&
|
||||
(e=0);var h=d>a.page.maxh?a.page.maxh:d;0>h&&(h=0);a.synched("scroll",function(){a.setScrollTop(h);a.setScrollLeft(e)})},this.cancelScroll=function(){});this.doScrollBy=function(b,d){var f=0,f=d?Math.floor((a.scroll.y-b)*a.scrollratio.y):(a.timer?a.newscrolly:a.getScrollTop(!0))-b;if(a.bouncescroll){var e=Math.round(a.view.h/2);f<-e?f=-e:f>a.page.maxh+e&&(f=a.page.maxh+e)}a.cursorfreezed=!1;py=a.getScrollTop(!0);if(0>f&&0>=py)return a.noticeCursor();if(f>a.page.maxh&&py>=a.page.maxh)return a.checkContentSize(),
|
||||
a.noticeCursor();a.doScrollTop(f)};this.doScrollLeftBy=function(b,d){var f=0,f=d?Math.floor((a.scroll.x-b)*a.scrollratio.x):(a.timer?a.newscrollx:a.getScrollLeft(!0))-b;if(a.bouncescroll){var e=Math.round(a.view.w/2);f<-e?f=-e:f>a.page.maxw+e&&(f=a.page.maxw+e)}a.cursorfreezed=!1;px=a.getScrollLeft(!0);if(0>f&&0>=px||f>a.page.maxw&&px>=a.page.maxw)return a.noticeCursor();a.doScrollLeft(f)};this.doScrollTo=function(b,d){d&&Math.round(b*a.scrollratio.y);a.cursorfreezed=!1;a.doScrollTop(b)};this.checkContentSize=
|
||||
function(){var b=a.getContentSize();(b.h!=a.page.h||b.w!=a.page.w)&&a.resize(!1,b)};a.onscroll=function(b){a.rail.drag||a.cursorfreezed||a.synched("scroll",function(){a.scroll.y=Math.round(a.getScrollTop()*(1/a.scrollratio.y));a.railh&&(a.scroll.x=Math.round(a.getScrollLeft()*(1/a.scrollratio.x)));a.noticeCursor()})};a.bind(a.docscroll,"scroll",a.onscroll);this.doZoomIn=function(b){if(!a.zoomactive){a.zoomactive=!0;a.zoomrestore={style:{}};var h="position top left zIndex backgroundColor marginTop marginBottom marginLeft marginRight".split(" "),
|
||||
f=a.win[0].style,g;for(g in h){var k=h[g];a.zoomrestore.style[k]="undefined"!=typeof f[k]?f[k]:""}a.zoomrestore.style.width=a.win.css("width");a.zoomrestore.style.height=a.win.css("height");a.zoomrestore.padding={w:a.win.outerWidth()-a.win.width(),h:a.win.outerHeight()-a.win.height()};d.isios4&&(a.zoomrestore.scrollTop=e(window).scrollTop(),e(window).scrollTop(0));a.win.css({position:d.isios4?"absolute":"fixed",top:0,left:0,"z-index":x+100,margin:"0px"});h=a.win.css("backgroundColor");(""==h||/transparent|rgba\(0, 0, 0, 0\)|rgba\(0,0,0,0\)/.test(h))&&
|
||||
a.win.css("backgroundColor","#fff");a.rail.css({"z-index":x+101});a.zoom.css({"z-index":x+102});a.zoom.css("backgroundPosition","0px -18px");a.resizeZoom();a.onzoomin&&a.onzoomin.call(a);return a.cancelEvent(b)}};this.doZoomOut=function(b){if(a.zoomactive)return a.zoomactive=!1,a.win.css("margin",""),a.win.css(a.zoomrestore.style),d.isios4&&e(window).scrollTop(a.zoomrestore.scrollTop),a.rail.css({"z-index":a.zindex}),a.zoom.css({"z-index":a.zindex}),a.zoomrestore=!1,a.zoom.css("backgroundPosition",
|
||||
"0px 0px"),a.onResize(),a.onzoomout&&a.onzoomout.call(a),a.cancelEvent(b)};this.doZoom=function(b){return a.zoomactive?a.doZoomOut(b):a.doZoomIn(b)};this.resizeZoom=function(){if(a.zoomactive){var b=a.getScrollTop();a.win.css({width:e(window).width()-a.zoomrestore.padding.w+"px",height:e(window).height()-a.zoomrestore.padding.h+"px"});a.onResize();a.setScrollTop(Math.min(a.page.maxh,b))}};this.init();e.nicescroll.push(this)},H=function(e){var b=this;this.nc=e;this.steptime=this.lasttime=this.speedy=
|
||||
this.speedx=this.lasty=this.lastx=0;this.snapy=this.snapx=!1;this.demuly=this.demulx=0;this.lastscrolly=this.lastscrollx=-1;this.timer=this.chky=this.chkx=0;this.time=function(){return+new Date};this.reset=function(e,g){b.stop();var l=b.time();b.steptime=0;b.lasttime=l;b.speedx=0;b.speedy=0;b.lastx=e;b.lasty=g;b.lastscrollx=-1;b.lastscrolly=-1};this.update=function(e,g){var l=b.time();b.steptime=l-b.lasttime;b.lasttime=l;var l=g-b.lasty,q=e-b.lastx,a=b.nc.getScrollTop(),p=b.nc.getScrollLeft(),a=a+
|
||||
l,p=p+q;b.snapx=0>p||p>b.nc.page.maxw;b.snapy=0>a||a>b.nc.page.maxh;b.speedx=q;b.speedy=l;b.lastx=e;b.lasty=g};this.stop=function(){b.nc.unsynched("domomentum2d");b.timer&&clearTimeout(b.timer);b.timer=0;b.lastscrollx=-1;b.lastscrolly=-1};this.doSnapy=function(e,g){var l=!1;0>g?(g=0,l=!0):g>b.nc.page.maxh&&(g=b.nc.page.maxh,l=!0);0>e?(e=0,l=!0):e>b.nc.page.maxw&&(e=b.nc.page.maxw,l=!0);l?b.nc.doScrollPos(e,g,b.nc.opt.snapbackspeed):b.nc.triggerScrollEnd()};this.doMomentum=function(e){var g=b.time(),
|
||||
l=e?g+e:b.lasttime;e=b.nc.getScrollLeft();var q=b.nc.getScrollTop(),a=b.nc.page.maxh,p=b.nc.page.maxw;b.speedx=0<p?Math.min(60,b.speedx):0;b.speedy=0<a?Math.min(60,b.speedy):0;l=l&&60>=g-l;if(0>q||q>a||0>e||e>p)l=!1;e=b.speedx&&l?b.speedx:!1;if(b.speedy&&l&&b.speedy||e){var d=Math.max(16,b.steptime);50<d&&(e=d/50,b.speedx*=e,b.speedy*=e,d=50);b.demulxy=0;b.lastscrollx=b.nc.getScrollLeft();b.chkx=b.lastscrollx;b.lastscrolly=b.nc.getScrollTop();b.chky=b.lastscrolly;var r=b.lastscrollx,t=b.lastscrolly,
|
||||
s=function(){var c=600<b.time()-g?0.04:0.02;if(b.speedx&&(r=Math.floor(b.lastscrollx-b.speedx*(1-b.demulxy)),b.lastscrollx=r,0>r||r>p))c=0.1;if(b.speedy&&(t=Math.floor(b.lastscrolly-b.speedy*(1-b.demulxy)),b.lastscrolly=t,0>t||t>a))c=0.1;b.demulxy=Math.min(1,b.demulxy+c);b.nc.synched("domomentum2d",function(){b.speedx&&(b.nc.getScrollLeft()!=b.chkx&&b.stop(),b.chkx=r,b.nc.setScrollLeft(r));b.speedy&&(b.nc.getScrollTop()!=b.chky&&b.stop(),b.chky=t,b.nc.setScrollTop(t));b.timer||(b.nc.hideCursor(),
|
||||
b.doSnapy(r,t))});1>b.demulxy?b.timer=setTimeout(s,d):(b.stop(),b.nc.hideCursor(),b.doSnapy(r,t))};s()}else b.doSnapy(b.nc.getScrollLeft(),b.nc.getScrollTop())}},w=e.fn.scrollTop;e.cssHooks.pageYOffset={get:function(g,b,h){return(b=e.data(g,"__nicescroll")||!1)&&b.ishwscroll?b.getScrollTop():w.call(g)},set:function(g,b){var h=e.data(g,"__nicescroll")||!1;h&&h.ishwscroll?h.setScrollTop(parseInt(b)):w.call(g,b);return this}};e.fn.scrollTop=function(g){if("undefined"==typeof g){var b=this[0]?e.data(this[0],
|
||||
"__nicescroll")||!1:!1;return b&&b.ishwscroll?b.getScrollTop():w.call(this)}return this.each(function(){var b=e.data(this,"__nicescroll")||!1;b&&b.ishwscroll?b.setScrollTop(parseInt(g)):w.call(e(this),g)})};var A=e.fn.scrollLeft;e.cssHooks.pageXOffset={get:function(g,b,h){return(b=e.data(g,"__nicescroll")||!1)&&b.ishwscroll?b.getScrollLeft():A.call(g)},set:function(g,b){var h=e.data(g,"__nicescroll")||!1;h&&h.ishwscroll?h.setScrollLeft(parseInt(b)):A.call(g,b);return this}};e.fn.scrollLeft=function(g){if("undefined"==
|
||||
typeof g){var b=this[0]?e.data(this[0],"__nicescroll")||!1:!1;return b&&b.ishwscroll?b.getScrollLeft():A.call(this)}return this.each(function(){var b=e.data(this,"__nicescroll")||!1;b&&b.ishwscroll?b.setScrollLeft(parseInt(g)):A.call(e(this),g)})};var B=function(g){var b=this;this.length=0;this.name="nicescrollarray";this.each=function(e){for(var g=0,a=0;g<b.length;g++)e.call(b[g],a++);return b};this.push=function(e){b[b.length]=e;b.length++};this.eq=function(e){return b[e]};if(g)for(var h=0;h<g.length;h++){var k=
|
||||
e.data(g[h],"__nicescroll")||!1;k&&(this[this.length]=k,this.length++)}return this};(function(e,b,h){for(var k=0;k<b.length;k++)h(e,b[k])})(B.prototype,"show hide toggle onResize resize remove stop doScrollPos".split(" "),function(e,b){e[b]=function(){var e=arguments;return this.each(function(){this[b].apply(this,e)})}});e.fn.getNiceScroll=function(g){return"undefined"==typeof g?new B(this):this[g]&&e.data(this[g],"__nicescroll")||!1};e.extend(e.expr[":"],{nicescroll:function(g){return e.data(g,"__nicescroll")?
|
||||
!0:!1}});e.fn.niceScroll=function(g,b){"undefined"==typeof b&&("object"==typeof g&&!("jquery"in g))&&(b=g,g=!1);var h=new B;"undefined"==typeof b&&(b={});g&&(b.doc=e(g),b.win=e(this));var k=!("doc"in b);!k&&!("win"in b)&&(b.win=e(this));this.each(function(){var g=e(this).data("__nicescroll")||!1;g||(b.doc=k?e(this):b.doc,g=new N(b,e(this)),e(this).data("__nicescroll",g));h.push(g)});return 1==h.length?h[0]:h};window.NiceScroll={getjQuery:function(){return e}};e.nicescroll||(e.nicescroll=new B,e.nicescroll.options=
|
||||
G)});
|
||||
|
||||
1178
example/jqueryUI.css
1178
example/jqueryUI.css
File diff suppressed because it is too large
Load diff
7
example/jqueryUI.js
vendored
7
example/jqueryUI.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -1,478 +0,0 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta name="author" content="Pierre Quentel">
|
||||
<meta http-equiv="content-type" content="text/html;charset=utf-8">
|
||||
<script type="text/javascript" src="jquery.js"></script>
|
||||
<script type="text/javascript" src="jqueryUI.js"></script>
|
||||
<link rel="stylesheet" href="jqueryUI.css"/>
|
||||
<link rel="stylesheet" href="style.css"/>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
|
||||
$('.audiostrip').each(function(){
|
||||
var n = $(this).attr('name')
|
||||
$(this).append('<div class="name">'+n+'</div>')
|
||||
//$(this).append('<div class="horizontal-slider" name="'+n+'" param="Pan"></div>')
|
||||
$(this).append('<div class="slider-container"><div class="vertical-slider" name="'+n+'" param="Gain"></div></div>')
|
||||
//$(this).append('<div class="toggle" name="'+n+'" param="Mute">Mute</div>')
|
||||
})
|
||||
|
||||
$('.gatestrip').each(function(){
|
||||
var n = $(this).attr('name')
|
||||
$(this).append(
|
||||
'<div class="paramblock">'
|
||||
|
||||
+'<div class="slider-container"><div class="horizontal-slider" min="33.6" max="4800" name="'+n+'" param="LF_Key"></div></div>'
|
||||
+'<div class="slider-container"><div class="horizontal-slider" min="240" max="23520" name="'+n+'" param="HF_Key"></div></div>'
|
||||
+'<div class="slider-container"><div class="horizontal-slider" min="-70" max="20" name="'+n+'" param="Threshold"></div></div>'
|
||||
+'<div class="slider-container"><div class="horizontal-slider" min="0" max="1000" name="'+n+'" param="Attack"></div></div>'
|
||||
+'<div class="slider-container"><div class="horizontal-slider" min="2" max="2000" name="'+n+'" param="Hold"></div></div>'
|
||||
+'<div class="slider-container"><div class="horizontal-slider" min="2" max="4000" name="'+n+'" param="Decay"></div></div>'
|
||||
|
||||
|
||||
+'</div>'
|
||||
|
||||
)
|
||||
|
||||
})
|
||||
|
||||
$('.eqstrip').each(function(){
|
||||
var n = $(this).attr('name')
|
||||
$(this).append(
|
||||
'<div class="paramblock">'
|
||||
+'<span style="color:#FFF; display: block">1st Band</span>'
|
||||
+'<div class="toggle" name="'+n+'" param="EQ_On_1">On</div>'
|
||||
+'<div class="slider-container"><div class="horizontal-slider" min="-20" max="20" name="'+n+'" param="EQ_Gain_1"></div></div>'
|
||||
+'<div class="slider-container"><div class="horizontal-slider" min="20" max="2000" name="'+n+'" param="EQ_Freq_1"></div></div>'
|
||||
+'<div class="slider-container"><div class="horizontal-slider" min="0.125" max="8" name="'+n+'" param="EQ_Band_1"></div></div>'
|
||||
+'</div>'
|
||||
+'<div class="paramblock">'
|
||||
+'<span style="color:#FFF; display: block">2nd Band</span>'
|
||||
+'<div class="toggle" name="'+n+'" param="EQ_On_2">On</div>'
|
||||
+'<div class="slider-container"><div class="horizontal-slider" min="-20" max="20" name="'+n+'" param="EQ_Gain_2"></div></div>'
|
||||
+'<div class="slider-container"><div class="horizontal-slider" min="40" max="4000" name="'+n+'" param="EQ_Freq_2"></div></div>'
|
||||
+'<div class="slider-container"><div class="horizontal-slider" min="0.125" max="8" name="'+n+'" param="EQ_Band_2"></div></div>'
|
||||
+'</div>'
|
||||
+'<div class="paramblock">'
|
||||
+'<span style="color:#FFF; display: block">3rd Band</span>'
|
||||
+'<div class="toggle" name="'+n+'" param="EQ_On_3">On</div>'
|
||||
+'<div class="slider-container"><div class="horizontal-slider" min="-20" max="20" name="'+n+'" param="EQ_Gain_3"></div></div>'
|
||||
+'<div class="slider-container"><div class="horizontal-slider" min="100" max="10000" name="'+n+'" param="EQ_Freq_3"></div></div>'
|
||||
+'<div class="slider-container"><div class="horizontal-slider" min="0.125" max="8" name="'+n+'" param="EQ_Band_3"></div></div>'
|
||||
+'</div>'
|
||||
+'<div class="paramblock">'
|
||||
+'<span style="color:#FFF; display: block">4th Band</span>'
|
||||
+'<div class="toggle" name="'+n+'" param="EQ_On_4">On</div>'
|
||||
+'<div class="slider-container"><div class="horizontal-slider" min="-20" max="20" name="'+n+'" param="EQ_Gain_4"></div></div>'
|
||||
+'<div class="slider-container"><div class="horizontal-slider" min="200" max="20000" name="'+n+'" param="EQ_Freq_4"></div></div>'
|
||||
+'<div class="slider-container"><div class="horizontal-slider" min="0.125" max="8" name="'+n+'" param="EQ_Band_4"></div></div>'
|
||||
+'</div>'
|
||||
|
||||
)
|
||||
|
||||
})
|
||||
|
||||
$('.vertical-slider').slider({orientation: 'vertical',min:0,max:1,step:0.001,range: "min",value:0.921})
|
||||
$('.vertical-slider .ui-slider-handle').each(function(){$(this).append('<div class="value">'+-Math.round((0.921-$(this).parent('.vertical-slider').slider('value'))*76*100)/100+'</div>')})
|
||||
$('.vertical-slider').on( "slide", function( event, ui ) {
|
||||
var db = -Math.round((0.921-ui.value)*76*100)/100
|
||||
$(this).find('.value').text(db),
|
||||
sendOsc($(this).attr('param'), $(this).attr('name'), ui.value)
|
||||
if ($('.vertical-slider[name='+$(this).attr('name')+']').length > 1) {
|
||||
$('.vertical-slider[name='+$(this).attr('name')+']').not(this).slider('value',ui.value).find('.value').text(ui.value)
|
||||
}
|
||||
})
|
||||
|
||||
$('.horizontal-slider').slider({orientation: 'horizontal',min:0,max:1,step:0.001})
|
||||
$('.horizontal-slider').each(function(){$(this).append('<div class="value">'+Math.round(1000*(parseFloat($(this).attr('min')) + (parseFloat($(this).attr('max'))-parseFloat($(this).attr('min')))*$(this).slider('value')))/1000+'</div><div class="label">'+$(this).attr('param')+'</div>')})
|
||||
$('.horizontal-slider').on( "slide", function( event, ui ) {
|
||||
var val = Math.round(1000*(parseFloat($(this).attr('min')) + (parseFloat($(this).attr('max'))-parseFloat($(this).attr('min')))*ui.value))/1000
|
||||
|
||||
$(this).find('.value').text(val)
|
||||
sendOsc($(this).attr('param'), $(this).attr('name'), ui.value)
|
||||
/*
|
||||
if ($('.horizontal-slider[name='+$(this).attr('name')+']').length > 1) {
|
||||
$('.horizontal-slider[name='+$(this).attr('name')+']').not(this).slider('value',ui.value).find('.value').text(ui.value)
|
||||
}*/
|
||||
});
|
||||
|
||||
$('.name').button()
|
||||
$('.name').each(function(){
|
||||
var name = $(this).text()
|
||||
if ($('#'+name).length != 0) {
|
||||
$(this).click(function(){
|
||||
var index = $('#tabs a[href="#'+name+'"]').parent().index();
|
||||
$('#tabs').tabs({active:index});
|
||||
})
|
||||
} else {
|
||||
$(this).addClass('disabled')
|
||||
}
|
||||
})
|
||||
|
||||
$('.toggle').button()
|
||||
$('.toggle').click(function(){
|
||||
$(this).toggleClass('enabled');
|
||||
if ($(this).hasClass('enabled')) { value = 1.0 } else { value = 0.0 };
|
||||
sendOsc($(this).attr('param'), $(this).attr('name'), value);
|
||||
/*
|
||||
if ($('.toggle[name='+$(this).attr('name')+']').length > 1) {
|
||||
$('.toggle[name='+$(this).attr('name')+']').not(this).toggleClass('enabled')
|
||||
}
|
||||
*/
|
||||
});
|
||||
|
||||
$('#tabs').tabs();
|
||||
$('.subtabs').tabs();
|
||||
|
||||
$('.name').button()
|
||||
$('.name').each(function(){
|
||||
var name = $(this).text()
|
||||
if ($('#'+name).length != 0) {
|
||||
$(this).click(function(){
|
||||
var index = $('#tabs a[href="#'+name+'"]').parent().index();
|
||||
$('#tabs').tabs({active:index});
|
||||
})
|
||||
} else {
|
||||
$(this).addClass('disabled')
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
$('#fullscreen').click(function(){
|
||||
$(this).attr('data-e',Math.abs($(this).attr('data-e')-1));
|
||||
var e = $(this).attr('data-e');
|
||||
toggleFullscreen(e);
|
||||
});
|
||||
|
||||
})
|
||||
|
||||
function savePreset() {
|
||||
var preset = ''
|
||||
$('.horizontal-slider, .vertical-slider').each(function(){
|
||||
preset += $(this).attr('param') + ' ' + $(this).attr('name') + ' ' + $(this).slider('value') + ';'
|
||||
})
|
||||
$('.toggle').each(function(){
|
||||
if ($(this).hasClass('enabled')) { var value = 1.0 } else { var value = 0.0 }
|
||||
preset += $(this).attr('param') + ' ' + $(this).attr('name') + ' ' + value + ';'
|
||||
})
|
||||
document.title = 'Save' + ',' + preset
|
||||
}
|
||||
function loadPreset() {
|
||||
document.title = 'Load'
|
||||
}
|
||||
|
||||
|
||||
function setValue(param,name,value) {
|
||||
$('[param='+param+'][name='+name+']').each(function(){
|
||||
if ( $(this).hasClass('vertical-slider') ) {
|
||||
$(this).slider('value',value)
|
||||
var db = -Math.round((0.921-value)*76*100)/100
|
||||
$(this).find('.value').text(db)
|
||||
}
|
||||
if ($(this).hasClass('horizontal-slider')) {
|
||||
$(this).slider('value',value)
|
||||
var val = Math.round(1000*(parseFloat($(this).attr('min')) + (parseFloat($(this).attr('max'))-parseFloat($(this).attr('min')))*value))/1000
|
||||
$(this).find('.value').text(val)
|
||||
}
|
||||
if ($(this).hasClass('toggle')) {
|
||||
if (value == 1.0) {$(this).addClass('enabled')}
|
||||
if (value == 0.0) {$(this).removeClass('enabled')}
|
||||
}
|
||||
})
|
||||
}
|
||||
function sendOsc(param, name, value){
|
||||
document.title = param + ',' + name + ',' + value
|
||||
}
|
||||
function toggleFullscreen(e){
|
||||
document.title = 'Fullscreen,' + e
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="left">
|
||||
<div class="name" onclick="loadPreset();">Load</div>
|
||||
<div class="name save" onclick="savePreset();">Save</div>
|
||||
</div>
|
||||
<div class="name right" id="fullscreen" data-e="0">Fullscreen</div>
|
||||
|
||||
|
||||
<div id="tabs">
|
||||
<ul>
|
||||
<li><a href="#MainMix">MainMix</a></li>
|
||||
<li><a href="#Drums">Drums</a></li>
|
||||
<li><a href="#Toms">Toms</a></li>
|
||||
<li><a href="#Basses">Basses</a></li>
|
||||
<li><a href="#Guitars">Guitars</a></li>
|
||||
<li><a href="#Vocals">Vocals</a></li>
|
||||
<li><a href="#MxSynths">MxSynths</a></li>
|
||||
<li><a href="#MxDrums">MxDrums</a></li>
|
||||
<!--<li><a href="#Acoustics">Acoustics</a></li>-->
|
||||
<li><a href="#Mains">Mains</a></li>
|
||||
<li><a href="#MonitorsJeannot">MonitorsJeannot</a></li>
|
||||
<li><a href="#MonitorsORL">MonitorsORL</a></li>
|
||||
<li><a href="#MonitorsDag">MonitorsDag</a></li>
|
||||
<li><a href="#EQs">EQs</a></li>
|
||||
<li><a href="#Gates">Gates</a></li>
|
||||
</ul>
|
||||
|
||||
<div id="EQs" class="subtabs">
|
||||
<ul>
|
||||
<li><a href="#eqKick">Kick</a></li>
|
||||
<li><a href="#eqSnare">Snare</a></li>
|
||||
<li><a href="#eqBass_Dag">Bass_Dag</a></li>
|
||||
<li><a href="#eqVx_Dag">Vx_Dag</a></li>
|
||||
<li><a href="#eqVx_ORL">Vx_ORL</a></li>
|
||||
<li><a href="#eqMxBass">MxBass</a></li>
|
||||
<li><a href="#eqMxKicks">MxKicks</a></li>
|
||||
<li><a href="#eqOH-L">OH-L</a></li>
|
||||
<li><a href="#eqOH-R">OH-R</a></li>
|
||||
<li><a href="#eqTom1">Tom1</a></li>
|
||||
<li><a href="#eqTom2">Tom2</a></li>
|
||||
<li><a href="#eqTom3">Tom3</a></li>
|
||||
<li><a href="#eqScape_Vx_Dag">Scape_Vx_Dag</a></li>
|
||||
<li><a href="#eqMxCymbs">MxCymbs</a></li>
|
||||
<li><a href="#eqDrums">Drums</a></li>
|
||||
</ul>
|
||||
<div id="eqKick">
|
||||
<div class="eqstrip fxstrip" name="Kick"></div>
|
||||
</div>
|
||||
<div id="eqSnare">
|
||||
<div class="eqstrip fxstrip" name="Snare"></div>
|
||||
</div>
|
||||
<div id="eqBass_Dag">
|
||||
<div class="eqstrip fxstrip" name="Bass_Dag"></div>
|
||||
</div>
|
||||
<div id="eqVx_Dag">
|
||||
<div class="eqstrip fxstrip" name="Vx_Dag"></div>
|
||||
</div>
|
||||
<div id="eqVx_ORL">
|
||||
<div class="eqstrip fxstrip" name="Vx_ORL"></div>
|
||||
</div>
|
||||
<div id="eqMxBass">
|
||||
<div class="eqstrip fxstrip" name="MxBass"></div>
|
||||
</div>
|
||||
<div id="eqMxKicks">
|
||||
<div class="eqstrip fxstrip" name="MxKicks"></div>
|
||||
</div>
|
||||
<div id="eqOH-L">
|
||||
<div class="eqstrip fxstrip" name="OH-L"></div>
|
||||
</div>
|
||||
<div id="eqOH-R">
|
||||
<div class="eqstrip fxstrip" name="OH-R"></div>
|
||||
</div>
|
||||
<div id="eqTom1">
|
||||
<div class="eqstrip fxstrip" name="Tom1"></div>
|
||||
</div>
|
||||
<div id="eqTom2">
|
||||
<div class="eqstrip fxstrip" name="Tom2"></div>
|
||||
</div>
|
||||
<div id="eqTom3">
|
||||
<div class="eqstrip fxstrip" name="Tom3"></div>
|
||||
</div>
|
||||
<div id="eqScape_Vx_Dag">
|
||||
<div class="eqstrip fxstrip" name="Scape_Vx_Dag"></div>
|
||||
</div>
|
||||
<div id="eqMxCymbs">
|
||||
<div class="eqstrip fxstrip" name="MxCymbs"></div>
|
||||
</div>
|
||||
<div id="eqDrums">
|
||||
<div class="eqstrip fxstrip" name="Drums"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="Gates" class="subtabs">
|
||||
<ul>
|
||||
<li><a href="#gateVx_Dag">Vx_Dag</a></li>
|
||||
<li><a href="#gateVx_ORL">Vx_ORL</a></li>
|
||||
<li><a href="#gateKick">Kick</a></li>
|
||||
<li><a href="#gateSnare">Snare</a></li>
|
||||
<li><a href="#gateTom1">Tom1</a></li>
|
||||
<li><a href="#gateTom2">Tom2</a></li>
|
||||
<li><a href="#gateTom3">Tom3</a></li>
|
||||
</ul>
|
||||
<div id="gateVx_Dag">
|
||||
<div class="gatestrip fxstrip" name="Vx_Dag"></div>
|
||||
</div>
|
||||
<div id="gateVx_ORL">
|
||||
<div class="gatestrip fxstrip" name="Vx_ORL"></div>
|
||||
</div>
|
||||
<div id="gateKick">
|
||||
<div class="gatestrip fxstrip" name="Kick"></div>
|
||||
</div>
|
||||
<div id="gateSnare">
|
||||
<div class="gatestrip fxstrip" name="Snare"></div>
|
||||
</div>
|
||||
<div id="gateTom1">
|
||||
<div class="gatestrip fxstrip" name="Tom1"></div>
|
||||
</div>
|
||||
<div id="gateTom2">
|
||||
<div class="gatestrip fxstrip" name="Tom2"></div>
|
||||
</div>
|
||||
<div id="gateTom3">
|
||||
<div class="gatestrip fxstrip" name="Tom3"></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div id="MainMix">
|
||||
<table class="table"><tr>
|
||||
<td><div class="audiostrip" name="Drums"></div></td>
|
||||
<td><div class="audiostrip" name="Basses"></div></td>
|
||||
<td><div class="audiostrip" name="Guitars"></div></td>
|
||||
<td><div class="audiostrip" name="MxSynths"></div></td>
|
||||
<td><div class="audiostrip" name="MxDrums"></div></td>
|
||||
<td><div class="audiostrip" name="Vocals"></div></td>
|
||||
<!--<td><div class="audiostrip" name="Acoustics"></div></td>-->
|
||||
<td><div class="audiostrip main" name="FOH"></div></td>
|
||||
</tr></table>
|
||||
</div>
|
||||
<div id="Drums">
|
||||
<table class="table"><tr>
|
||||
<td><div class="audiostrip" name="Kick"></div></td>
|
||||
<td><div class="audiostrip" name="Snare"></div></td>
|
||||
<td><div class="audiostrip" name="Toms"></div></td>
|
||||
<td><div class="audiostrip" name="OH-L"></div></td>
|
||||
<td><div class="audiostrip" name="OH-R"></div></td>
|
||||
<td><div class="audiostrip main" name="Drums"></div></td>
|
||||
</tr></table>
|
||||
</div>
|
||||
<div id="Basses">
|
||||
<table class="table"><tr>
|
||||
<td><div class="audiostrip" name="Bass_ORL"></div></td>
|
||||
<td><div class="audiostrip" name="Oct_Bass_ORL"></div></td>
|
||||
<td><div class="audiostrip" name="FX_Bass_ORL"></div></td>
|
||||
|
||||
<td><div class="audiostrip" name="Bass_Dag"></div></td>
|
||||
<td><div class="audiostrip" name="Oct_Bass_Dag"></div></td>
|
||||
<td><div class="audiostrip" name="FX_Bass_Dag"></div></td>
|
||||
|
||||
<td><div class="audiostrip main" name="Basses"></div></td>
|
||||
</tr></table>
|
||||
</div>
|
||||
<div id="Guitars">
|
||||
<table class="table"><tr>
|
||||
<td><div class="audiostrip" name="Guitar_ORL"></div></td>
|
||||
<td><div class="audiostrip" name="FX_Gtr_ORL"></div></td>
|
||||
<td><div class="audiostrip" name="FX_Gtr_ORL_1"></div></td>
|
||||
<td><div class="audiostrip" name="FX_Gtr_ORL_2"></div></td>
|
||||
<td><div class="audiostrip" name="Guitar_Dag"></div></td>
|
||||
<td><div class="audiostrip" name="FX_Gtr_Dag"></div></td>
|
||||
<td><div class="audiostrip" name="FX_Gtr_Dag_1"></div></td>
|
||||
<td><div class="audiostrip" name="FX_Gtr_Dag_2"></div></td>
|
||||
<td><div class="audiostrip" name="Scape_Gtr_Dag"></div></td>
|
||||
<td><div class="audiostrip main" name="Guitars"></div></td>
|
||||
</tr></table>
|
||||
</div>
|
||||
<div id="MxSynths">
|
||||
<table class="table"><tr>
|
||||
<td><div class="audiostrip" name="MxBass"></div></td>
|
||||
<td><div class="audiostrip" name="MxChords"></div></td>
|
||||
<td><div class="audiostrip" name="MxLead"></div></td>
|
||||
<td><div class="audiostrip" name="MxCtLead"></div></td>
|
||||
<td><div class="audiostrip" name="MxClassical"></div></td>
|
||||
<td><div class="audiostrip main" name="MxSynths"></div></td>
|
||||
</tr></table>
|
||||
</div>
|
||||
<div id="MxDrums">
|
||||
<table class="table"><tr>
|
||||
<td><div class="audiostrip" name="MxKicks"></div></td>
|
||||
<td><div class="audiostrip" name="MxSnares"></div></td>
|
||||
<td><div class="audiostrip" name="MxCymbs"></div></td>
|
||||
<td><div class="audiostrip" name="MxCont"></div></td>
|
||||
<td><div class="audiostrip" name="MxSamples"></div></td>
|
||||
<td><div class="audiostrip main" name="MxDrums"></div></td>
|
||||
</tr></table>
|
||||
</div>
|
||||
<div id="Vocals">
|
||||
<table class="table"><tr>
|
||||
<td><div class="audiostrip" name="Vx_ORL"></div></td>
|
||||
<td><div class="audiostrip" name="FX_Vx_ORL"></div></td>
|
||||
<td><div class="audiostrip" name="FX_Vx_ORL_1"></div></td>
|
||||
<td><div class="audiostrip" name="FX_Vx_ORL_2"></div></td>
|
||||
<td><div class="audiostrip" name="Vx_Dag"></div></td>
|
||||
<td><div class="audiostrip" name="FX_Vx_Dag"></div></td>
|
||||
<td><div class="audiostrip" name="FX_Vx_Dag_1"></div></td>
|
||||
<td><div class="audiostrip" name="FX_Vx_Dag_2"></div></td>
|
||||
<td><div class="audiostrip" name="Scape_Vx_Dag"></div></td>
|
||||
<td><div class="audiostrip" name="Vx_Jeannot"></div></td>
|
||||
<td><div class="audiostrip main" name="Vocals"></div></td>
|
||||
</tr></table>
|
||||
</div><!--
|
||||
<div id="Acoustics">
|
||||
<table class="table"><tr>
|
||||
<td><div class="audiostrip" name="PianoToy"></div></td>
|
||||
<td><div class="audiostrip" name="Cymbalum"></div></td>
|
||||
<td><div class="audiostrip" name="GuitarAc"></div></td>
|
||||
<td><div class="audiostrip main" name="Acoustics"></div></td>
|
||||
</tr></table>
|
||||
</div> -->
|
||||
<div id="Toms">
|
||||
<table class="table"><tr>
|
||||
<td><div class="audiostrip" name="Tom1"></div></td>
|
||||
<td><div class="audiostrip" name="Tom2"></div></td>
|
||||
<td><div class="audiostrip" name="Tom3"></div></td>
|
||||
<td><div class="audiostrip main" name="Toms"></div></td>
|
||||
</tr></table>
|
||||
</div>
|
||||
<div id="Mains">
|
||||
<table class="table"><tr>
|
||||
<td><div class="audiostrip" name="FOH"></div></td>
|
||||
<td><div class="audiostrip" name="MonitorsJeannot"></div></td>
|
||||
<td><div class="audiostrip" name="MonitorsORL"></div></td>
|
||||
<td><div class="audiostrip" name="MonitorsDag"></div></td>
|
||||
</tr></table>
|
||||
</div>
|
||||
<div id="MonitorsJeannot">
|
||||
<table class="table"><tr>
|
||||
<td><div class="audiostrip" name="mjDrums"></div></td>
|
||||
<td><div class="audiostrip" name="mjBasses"></div></td>
|
||||
<td><div class="audiostrip" name="mjGuitars"></div></td>
|
||||
<td><div class="audiostrip" name="mjMxDrums"></div></td>
|
||||
<td><div class="audiostrip" name="mjMxSynths"></div></td>
|
||||
<td><div class="audiostrip" name="mjVocals"></div></td>
|
||||
<td><div class="audiostrip" name="mjMetronome"></div></td>
|
||||
<td><div class="audiostrip main" name="MonitorsJeannot"></div></td>
|
||||
</tr></table>
|
||||
</div>
|
||||
<div id="MonitorsORL">
|
||||
<table class="table"><tr>
|
||||
<td><div class="audiostrip" name="moDrums"></div></td>
|
||||
<td><div class="audiostrip" name="moBasses"></div></td>
|
||||
<td><div class="audiostrip" name="moGuitars"></div></td>
|
||||
<td><div class="audiostrip" name="moMxDrums"></div></td>
|
||||
<td><div class="audiostrip" name="moMxSynths"></div></td>
|
||||
<td><div class="audiostrip" name="moVocals"></div></td>
|
||||
<td><div class="audiostrip" name="moBassORL"></div></td>
|
||||
<td><div class="audiostrip" name="moGuitarORL"></div></td>
|
||||
<td><div class="audiostrip" name="moVxORL"></div></td>
|
||||
<td><div class="audiostrip" name="moMetronome"></div></td>
|
||||
<td><div class="audiostrip main" name="MonitorsORL"></div></td>
|
||||
</tr></table>
|
||||
</div>
|
||||
<div id="MonitorsDag">
|
||||
<table class="table"><tr>
|
||||
<td><div class="audiostrip" name="mdDrums"></div></td>
|
||||
<td><div class="audiostrip" name="mdBasses"></div></td>
|
||||
<td><div class="audiostrip" name="mdGuitars"></div></td>
|
||||
<td><div class="audiostrip" name="mdMxDrums"></div></td>
|
||||
<td><div class="audiostrip" name="mdMxSynths"></div></td>
|
||||
<td><div class="audiostrip" name="mdVocals"></div></td>
|
||||
<td><div class="audiostrip" name="mdBassDag"></div></td>
|
||||
<td><div class="audiostrip" name="mdGuitarDag"></div></td>
|
||||
<td><div class="audiostrip" name="mdVoixDag"></div></td>
|
||||
<td><div class="audiostrip" name="mdMetronome"></div></td>
|
||||
<td><div class="audiostrip main" name="MonitorsDag"></div></td>
|
||||
</tr></table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,373 +0,0 @@
|
|||
EQ_Gain_1 Kick 0.675
|
||||
EQ_Freq_1 Kick 0.023
|
||||
EQ_Band_1 Kick 0.073
|
||||
EQ_Gain_2 Kick 0.5
|
||||
EQ_Freq_2 Kick 0.091
|
||||
EQ_Band_2 Kick 0.111
|
||||
EQ_Gain_3 Kick 0.274
|
||||
EQ_Freq_3 Kick 0.047
|
||||
EQ_Band_3 Kick 0.15
|
||||
EQ_Gain_4 Kick 0.6
|
||||
EQ_Freq_4 Kick 0.202
|
||||
EQ_Band_4 Kick 0.01
|
||||
EQ_Gain_1 Snare 0.5
|
||||
EQ_Freq_1 Snare 0
|
||||
EQ_Band_1 Snare 0
|
||||
EQ_Gain_2 Snare 0.275
|
||||
EQ_Freq_2 Snare 0.154
|
||||
EQ_Band_2 Snare 0.01
|
||||
EQ_Gain_3 Snare 0.35
|
||||
EQ_Freq_3 Snare 0.126
|
||||
EQ_Band_3 Snare 0
|
||||
EQ_Gain_4 Snare 0.413
|
||||
EQ_Freq_4 Snare 0.495
|
||||
EQ_Band_4 Snare 0.175
|
||||
EQ_Gain_1 Bass_Dag 0.637
|
||||
EQ_Freq_1 Bass_Dag 0.026
|
||||
EQ_Band_1 Bass_Dag 0.06
|
||||
EQ_Gain_2 Bass_Dag 0.4
|
||||
EQ_Freq_2 Bass_Dag 0.101
|
||||
EQ_Band_2 Bass_Dag 0.186
|
||||
EQ_Gain_3 Bass_Dag 0.5
|
||||
EQ_Freq_3 Bass_Dag 0
|
||||
EQ_Band_3 Bass_Dag 0
|
||||
EQ_Gain_4 Bass_Dag 0.6
|
||||
EQ_Freq_4 Bass_Dag 0.243
|
||||
EQ_Band_4 Bass_Dag 0.074
|
||||
EQ_Gain_1 Vx_Dag 0.613
|
||||
EQ_Freq_1 Vx_Dag 0.03
|
||||
EQ_Band_1 Vx_Dag 0.01
|
||||
EQ_Gain_2 Vx_Dag 0.325
|
||||
EQ_Freq_2 Vx_Dag 0.061
|
||||
EQ_Band_2 Vx_Dag 0.031
|
||||
EQ_Gain_3 Vx_Dag 0.35
|
||||
EQ_Freq_3 Vx_Dag 0.111
|
||||
EQ_Band_3 Vx_Dag 0.01
|
||||
EQ_Gain_4 Vx_Dag 0.663
|
||||
EQ_Freq_4 Vx_Dag 0.222
|
||||
EQ_Band_4 Vx_Dag 0.022
|
||||
EQ_Gain_1 Vx_ORL 0.699
|
||||
EQ_Freq_1 Vx_ORL 0.025
|
||||
EQ_Band_1 Vx_ORL 0.073
|
||||
EQ_Gain_2 Vx_ORL 0.387
|
||||
EQ_Freq_2 Vx_ORL 0.061
|
||||
EQ_Band_2 Vx_ORL 0.061
|
||||
EQ_Gain_3 Vx_ORL 0.35
|
||||
EQ_Freq_3 Vx_ORL 0.111
|
||||
EQ_Band_3 Vx_ORL 0.01
|
||||
EQ_Gain_4 Vx_ORL 0.626
|
||||
EQ_Freq_4 Vx_ORL 0.152
|
||||
EQ_Band_4 Vx_ORL 0.047
|
||||
EQ_Gain_1 MxBass 0.2
|
||||
EQ_Freq_1 MxBass 0.01
|
||||
EQ_Band_1 MxBass 0
|
||||
EQ_Gain_2 MxBass 0.662
|
||||
EQ_Freq_2 MxBass 0.029
|
||||
EQ_Band_2 MxBass 0.314
|
||||
EQ_Gain_3 MxBass 0.375
|
||||
EQ_Freq_3 MxBass 0.116
|
||||
EQ_Band_3 MxBass 0.2
|
||||
EQ_Gain_4 MxBass 0.088
|
||||
EQ_Freq_4 MxBass 0.722
|
||||
EQ_Band_4 MxBass 0.06
|
||||
EQ_Gain_1 MxKicks 0.675
|
||||
EQ_Freq_1 MxKicks 0.002
|
||||
EQ_Band_1 MxKicks 0.073
|
||||
EQ_Gain_2 MxKicks 0.5
|
||||
EQ_Freq_2 MxKicks 0
|
||||
EQ_Band_2 MxKicks 0
|
||||
EQ_Gain_3 MxKicks 0.5
|
||||
EQ_Freq_3 MxKicks 0
|
||||
EQ_Band_3 MxKicks 0
|
||||
EQ_Gain_4 MxKicks 0.725
|
||||
EQ_Freq_4 MxKicks 0.116
|
||||
EQ_Band_4 MxKicks 0.022
|
||||
EQ_Gain_1 OH-L 0.5
|
||||
EQ_Freq_1 OH-L 0
|
||||
EQ_Band_1 OH-L 0
|
||||
EQ_Gain_2 OH-L 0.5
|
||||
EQ_Freq_2 OH-L 0
|
||||
EQ_Band_2 OH-L 0
|
||||
EQ_Gain_3 OH-L 0.5
|
||||
EQ_Freq_3 OH-L 0
|
||||
EQ_Band_3 OH-L 0
|
||||
EQ_Gain_4 OH-L 0.6
|
||||
EQ_Freq_4 OH-L 0.212
|
||||
EQ_Band_4 OH-L 0.048
|
||||
EQ_Gain_1 OH-R 0.301
|
||||
EQ_Freq_1 OH-R 0.041
|
||||
EQ_Band_1 OH-R 0.01
|
||||
EQ_Gain_2 OH-R 0.625
|
||||
EQ_Freq_2 OH-R 0.092
|
||||
EQ_Band_2 OH-R 0.06
|
||||
EQ_Gain_3 OH-R 0.5
|
||||
EQ_Freq_3 OH-R 0
|
||||
EQ_Band_3 OH-R 0
|
||||
EQ_Gain_4 OH-R 0.838
|
||||
EQ_Freq_4 OH-R 0.162
|
||||
EQ_Band_4 OH-R 0.048
|
||||
EQ_Gain_1 Tom1 0.502
|
||||
EQ_Freq_1 Tom1 0
|
||||
EQ_Band_1 Tom1 0
|
||||
EQ_Gain_2 Tom1 0.502
|
||||
EQ_Freq_2 Tom1 0
|
||||
EQ_Band_2 Tom1 0
|
||||
EQ_Gain_3 Tom1 0.508
|
||||
EQ_Freq_3 Tom1 0
|
||||
EQ_Band_3 Tom1 0
|
||||
EQ_Gain_4 Tom1 0.699
|
||||
EQ_Freq_4 Tom1 0.091
|
||||
EQ_Band_4 Tom1 0.022
|
||||
EQ_Gain_1 Tom2 0.499
|
||||
EQ_Freq_1 Tom2 0
|
||||
EQ_Band_1 Tom2 0
|
||||
EQ_Gain_2 Tom2 0.387
|
||||
EQ_Freq_2 Tom2 0.051
|
||||
EQ_Band_2 Tom2 0.022
|
||||
EQ_Gain_3 Tom2 0.502
|
||||
EQ_Freq_3 Tom2 0
|
||||
EQ_Band_3 Tom2 0
|
||||
EQ_Gain_4 Tom2 0.625
|
||||
EQ_Freq_4 Tom2 0.192
|
||||
EQ_Band_4 Tom2 0.048
|
||||
EQ_Gain_1 Tom3 0.713
|
||||
EQ_Freq_1 Tom3 0.009
|
||||
EQ_Band_1 Tom3 0.099
|
||||
EQ_Gain_2 Tom3 0.137
|
||||
EQ_Freq_2 Tom3 0.014
|
||||
EQ_Band_2 Tom3 0.01
|
||||
EQ_Gain_3 Tom3 0.325
|
||||
EQ_Freq_3 Tom3 0.049
|
||||
EQ_Band_3 Tom3 0.099
|
||||
EQ_Gain_4 Tom3 0.7
|
||||
EQ_Freq_4 Tom3 0.202
|
||||
EQ_Band_4 Tom3 0.048
|
||||
EQ_Gain_1 Scape_Vx_Dag 0.612
|
||||
EQ_Freq_1 Scape_Vx_Dag 0.03
|
||||
EQ_Band_1 Scape_Vx_Dag 0.01
|
||||
EQ_Gain_2 Scape_Vx_Dag 0.325
|
||||
EQ_Freq_2 Scape_Vx_Dag 0.121
|
||||
EQ_Band_2 Scape_Vx_Dag 0
|
||||
EQ_Gain_3 Scape_Vx_Dag 0.66
|
||||
EQ_Freq_3 Scape_Vx_Dag 0.455
|
||||
EQ_Band_3 Scape_Vx_Dag 0.022
|
||||
EQ_Gain_4 Scape_Vx_Dag 0.5
|
||||
EQ_Freq_4 Scape_Vx_Dag 0
|
||||
EQ_Band_4 Scape_Vx_Dag 0
|
||||
EQ_Gain_1 MxCymbs 0.501
|
||||
EQ_Freq_1 MxCymbs 0
|
||||
EQ_Band_1 MxCymbs 0
|
||||
EQ_Gain_2 MxCymbs 0.498
|
||||
EQ_Freq_2 MxCymbs 0
|
||||
EQ_Band_2 MxCymbs 0
|
||||
EQ_Gain_3 MxCymbs 0.5
|
||||
EQ_Freq_3 MxCymbs 0
|
||||
EQ_Band_3 MxCymbs 0
|
||||
EQ_Gain_4 MxCymbs 0.588
|
||||
EQ_Freq_4 MxCymbs 0.253
|
||||
EQ_Band_4 MxCymbs 0.06
|
||||
EQ_Gain_1 Drums 0.625
|
||||
EQ_Freq_1 Drums 0.008
|
||||
EQ_Band_1 Drums 0.073
|
||||
EQ_Gain_2 Drums 0.075
|
||||
EQ_Freq_2 Drums 0.076
|
||||
EQ_Band_2 Drums 0.022
|
||||
EQ_Gain_3 Drums 0.65
|
||||
EQ_Freq_3 Drums 0.111
|
||||
EQ_Band_3 Drums 0.022
|
||||
EQ_Gain_4 Drums 0.65
|
||||
EQ_Freq_4 Drums 0.232
|
||||
EQ_Band_4 Drums 0.048
|
||||
LF_Key Vx_Dag 0
|
||||
HF_Key Vx_Dag 1
|
||||
Threshold Vx_Dag 0.211
|
||||
Attack Vx_Dag 0.01
|
||||
Hold Vx_Dag 0.05
|
||||
Decay Vx_Dag 0.025
|
||||
LF_Key Vx_ORL 0
|
||||
HF_Key Vx_ORL 1
|
||||
Threshold Vx_ORL 0.222
|
||||
Attack Vx_ORL 0.01
|
||||
Hold Vx_ORL 0.049
|
||||
Decay Vx_ORL 0.025
|
||||
LF_Key Kick 0
|
||||
HF_Key Kick 0
|
||||
Threshold Kick 0
|
||||
Attack Kick 0
|
||||
Hold Kick 0
|
||||
Decay Kick 0
|
||||
LF_Key Snare 0
|
||||
HF_Key Snare 0
|
||||
Threshold Snare 0
|
||||
Attack Snare 0
|
||||
Hold Snare 0
|
||||
Decay Snare 0
|
||||
LF_Key Tom1 0
|
||||
HF_Key Tom1 0
|
||||
Threshold Tom1 0
|
||||
Attack Tom1 0
|
||||
Hold Tom1 0
|
||||
Decay Tom1 0
|
||||
LF_Key Tom2 0
|
||||
HF_Key Tom2 0
|
||||
Threshold Tom2 0
|
||||
Attack Tom2 0
|
||||
Hold Tom2 0
|
||||
Decay Tom2 0
|
||||
LF_Key Tom3 0
|
||||
HF_Key Tom3 0
|
||||
Threshold Tom3 0
|
||||
Attack Tom3 0
|
||||
Hold Tom3 0
|
||||
Decay Tom3 0
|
||||
Gain Drums 0.921
|
||||
Gain Basses 0.918
|
||||
Gain Guitars 0.78
|
||||
Gain MxSynths 0.757
|
||||
Gain MxDrums 0.678
|
||||
Gain Vocals 0.714
|
||||
Gain FOH 0.791
|
||||
Gain Kick 0.861
|
||||
Gain Snare 0.918
|
||||
Gain Toms 0.878
|
||||
Gain OH-L 0.602
|
||||
Gain OH-R 0.4
|
||||
Gain Drums 0.921
|
||||
Gain Bass_ORL 0.886
|
||||
Gain Oct_Bass_ORL 0.921
|
||||
Gain FX_Bass_ORL 0.934
|
||||
Gain Bass_Dag 0.973
|
||||
Gain Oct_Bass_Dag 0.921
|
||||
Gain FX_Bass_Dag 0.868
|
||||
Gain Basses 0.918
|
||||
Gain Guitar_ORL 0.952
|
||||
Gain FX_Gtr_ORL 0.921
|
||||
Gain FX_Gtr_ORL_1 0.921
|
||||
Gain FX_Gtr_ORL_2 0.921
|
||||
Gain Guitar_Dag 0.918
|
||||
Gain FX_Gtr_Dag 0.921
|
||||
Gain FX_Gtr_Dag_1 0.921
|
||||
Gain FX_Gtr_Dag_2 0.921
|
||||
Gain Scape_Gtr_Dag 0.921
|
||||
Gain Guitars 0.78
|
||||
Gain MxBass 0.565
|
||||
Gain MxChords 0.769
|
||||
Gain MxLead 0.836
|
||||
Gain MxCtLead 0.888
|
||||
Gain MxClassical 0.835
|
||||
Gain MxSynths 0.757
|
||||
Gain MxKicks 0.845
|
||||
Gain MxSnares 0.84
|
||||
Gain MxCymbs 0.875
|
||||
Gain MxCont 0.921
|
||||
Gain MxSamples 0.908
|
||||
Gain MxDrums 0.678
|
||||
Gain Vx_ORL 0.947
|
||||
Gain FX_Vx_ORL 0.921
|
||||
Gain FX_Vx_ORL_1 0.921
|
||||
Gain FX_Vx_ORL_2 0.921
|
||||
Gain Vx_Dag 0.946
|
||||
Gain FX_Vx_Dag 0.921
|
||||
Gain FX_Vx_Dag_1 0.921
|
||||
Gain FX_Vx_Dag_2 0.921
|
||||
Gain Scape_Vx_Dag 0.96
|
||||
Gain Vx_Jeannot 0.921
|
||||
Gain Vocals 0.714
|
||||
Gain Tom1 0.901
|
||||
Gain Tom2 0.021
|
||||
Gain Tom3 0.914
|
||||
Gain Toms 0.878
|
||||
Gain FOH 0.791
|
||||
Gain MonitorsJeannot 0.921
|
||||
Gain MonitorsORL 0.921
|
||||
Gain MonitorsDag 0.921
|
||||
Gain mjDrums 0.826
|
||||
Gain mjBasses 0.908
|
||||
Gain mjGuitars 0.8
|
||||
Gain mjMxDrums 0.819
|
||||
Gain mjMxSynths 0.767
|
||||
Gain mjVocals 0.75
|
||||
Gain mjMetronome 0.775
|
||||
Gain MonitorsJeannot 0.921
|
||||
Gain moDrums 0.96
|
||||
Gain moBasses 0.906
|
||||
Gain moGuitars 0.828
|
||||
Gain moMxDrums 0.785
|
||||
Gain moMxSynths 0.726
|
||||
Gain moVocals 0.802
|
||||
Gain moBassORL 0
|
||||
Gain moGuitarORL 0
|
||||
Gain moVxORL 0
|
||||
Gain moMetronome 0.829
|
||||
Gain MonitorsORL 0.921
|
||||
Gain mdDrums 0.921
|
||||
Gain mdBasses 0.905
|
||||
Gain mdGuitars 0.816
|
||||
Gain mdMxDrums 0.721
|
||||
Gain mdMxSynths 0.737
|
||||
Gain mdVocals 0.751
|
||||
Gain mdBassDag 0
|
||||
Gain mdGuitarDag 0
|
||||
Gain mdVoixDag 0
|
||||
Gain mdMetronome 0.921
|
||||
Gain MonitorsDag 0.921
|
||||
EQ_On_1 Kick 1
|
||||
EQ_On_2 Kick 0
|
||||
EQ_On_3 Kick 1
|
||||
EQ_On_4 Kick 1
|
||||
EQ_On_1 Snare 0
|
||||
EQ_On_2 Snare 1
|
||||
EQ_On_3 Snare 1
|
||||
EQ_On_4 Snare 1
|
||||
EQ_On_1 Bass_Dag 0
|
||||
EQ_On_2 Bass_Dag 1
|
||||
EQ_On_3 Bass_Dag 0
|
||||
EQ_On_4 Bass_Dag 1
|
||||
EQ_On_1 Vx_Dag 0
|
||||
EQ_On_2 Vx_Dag 1
|
||||
EQ_On_3 Vx_Dag 1
|
||||
EQ_On_4 Vx_Dag 1
|
||||
EQ_On_1 Vx_ORL 1
|
||||
EQ_On_2 Vx_ORL 1
|
||||
EQ_On_3 Vx_ORL 1
|
||||
EQ_On_4 Vx_ORL 1
|
||||
EQ_On_1 MxBass 1
|
||||
EQ_On_2 MxBass 1
|
||||
EQ_On_3 MxBass 1
|
||||
EQ_On_4 MxBass 1
|
||||
EQ_On_1 MxKicks 1
|
||||
EQ_On_2 MxKicks 0
|
||||
EQ_On_3 MxKicks 0
|
||||
EQ_On_4 MxKicks 1
|
||||
EQ_On_1 OH-L 0
|
||||
EQ_On_2 OH-L 0
|
||||
EQ_On_3 OH-L 0
|
||||
EQ_On_4 OH-L 1
|
||||
EQ_On_1 OH-R 1
|
||||
EQ_On_2 OH-R 1
|
||||
EQ_On_3 OH-R 0
|
||||
EQ_On_4 OH-R 1
|
||||
EQ_On_1 Tom1 0
|
||||
EQ_On_2 Tom1 0
|
||||
EQ_On_3 Tom1 0
|
||||
EQ_On_4 Tom1 1
|
||||
EQ_On_1 Tom2 0
|
||||
EQ_On_2 Tom2 1
|
||||
EQ_On_3 Tom2 0
|
||||
EQ_On_4 Tom2 1
|
||||
EQ_On_1 Tom3 1
|
||||
EQ_On_2 Tom3 1
|
||||
EQ_On_3 Tom3 1
|
||||
EQ_On_4 Tom3 1
|
||||
EQ_On_1 Scape_Vx_Dag 1
|
||||
EQ_On_2 Scape_Vx_Dag 1
|
||||
EQ_On_3 Scape_Vx_Dag 1
|
||||
EQ_On_4 Scape_Vx_Dag 0
|
||||
EQ_On_1 MxCymbs 0
|
||||
EQ_On_2 MxCymbs 0
|
||||
EQ_On_3 MxCymbs 0
|
||||
EQ_On_4 MxCymbs 1
|
||||
EQ_On_1 Drums 1
|
||||
EQ_On_2 Drums 1
|
||||
EQ_On_3 Drums 1
|
||||
EQ_On_4 Drums 1
|
||||
|
|
@ -1,95 +0,0 @@
|
|||
Gain Drums 0.926
|
||||
Gain Basses 0.947
|
||||
Gain Guitars 0.889
|
||||
Gain MxSynths 0.853
|
||||
Gain MxDrums 0.905
|
||||
Gain Vocals 0.784
|
||||
Gain Acoustics 0.912
|
||||
Gain Kick 0.96
|
||||
Gain Snare 0.921
|
||||
Gain Toms 0.96
|
||||
Gain OH-L 0.813
|
||||
Gain OH-R 0.813
|
||||
Gain Drums 0.926
|
||||
Gain Bass_ORL 0.921
|
||||
Gain Oct_Bass_ORL 0.921
|
||||
Gain FX_Bass_ORL 0.934
|
||||
Gain Bass_Dag 0.973
|
||||
Gain Oct_Bass_Dag 0.921
|
||||
Gain FX_Bass_Dag 0.868
|
||||
Gain Basses 0.947
|
||||
Gain Guitar_ORL 0.921
|
||||
Gain FX_Gtr_ORL 0.921
|
||||
Gain FX_Gtr_ORL_1 0.921
|
||||
Gain FX_Gtr_ORL_2 0.921
|
||||
Gain Guitar_Dag 0.918
|
||||
Gain FX_Gtr_Dag 0.921
|
||||
Gain FX_Gtr_Dag_1 0.921
|
||||
Gain FX_Gtr_Dag_2 0.921
|
||||
Gain Scape_Gtr_Dag 0.921
|
||||
Gain Guitars 0.889
|
||||
Gain MxBass 0.721
|
||||
Gain MxChords 0.921
|
||||
Gain MxLead 0.836
|
||||
Gain MxCtLead 0.888
|
||||
Gain MxClassical 0.835
|
||||
Gain MxSynths 0.853
|
||||
Gain MxKicks 0.921
|
||||
Gain MxSnares 0.921
|
||||
Gain MxCymbs 0.875
|
||||
Gain MxCont 0.921
|
||||
Gain MxSamples 0.908
|
||||
Gain MxDrums 0.905
|
||||
Gain Vx_ORL 0.947
|
||||
Gain FX_Vx_ORL 0.921
|
||||
Gain FX_Vx_ORL_1 0.921
|
||||
Gain FX_Vx_ORL_2 0.921
|
||||
Gain Vx_Dag 0.946
|
||||
Gain FX_Vx_Dag 0.921
|
||||
Gain FX_Vx_Dag_1 0.921
|
||||
Gain FX_Vx_Dag_2 0.921
|
||||
Gain Scape_Vx_Dag 0.96
|
||||
Gain Vx_Jeannot 0.921
|
||||
Gain Vocals 0.784
|
||||
Gain PianoToy 0.921
|
||||
Gain Cymbalum 0.921
|
||||
Gain GuitarAc 0.921
|
||||
Gain Acoustics 0.912
|
||||
Gain Tom1 0.901
|
||||
Gain Tom2 0.859
|
||||
Gain Tom3 0.914
|
||||
Gain Toms 0.96
|
||||
Gain FOH 0.856
|
||||
Gain MonitorsJeannot 0.921
|
||||
Gain MonitorsORL 0.921
|
||||
Gain MonitorsDag 0.921
|
||||
Gain mjDrums 0.796
|
||||
Gain mjBasses 0.908
|
||||
Gain mjGuitars 0.8
|
||||
Gain mjMxDrums 0.719
|
||||
Gain mjMxSynths 0.737
|
||||
Gain mjVocals 0.75
|
||||
Gain mjMetronome 0.737
|
||||
Gain MonitorsJeannot 0.921
|
||||
Gain moDrums 0.96
|
||||
Gain moBasses 0.906
|
||||
Gain moGuitars 0.828
|
||||
Gain moMxDrums 0.721
|
||||
Gain moMxSynths 0.726
|
||||
Gain moVocals 0.802
|
||||
Gain moBassORL 0
|
||||
Gain moGuitarORL 0
|
||||
Gain moVxORL 0
|
||||
Gain moMetronome 0.829
|
||||
Gain MonitorsORL 0.921
|
||||
Gain mdDrums 0.921
|
||||
Gain mdBasses 0.905
|
||||
Gain mdGuitars 0.816
|
||||
Gain mdMxDrums 0.721
|
||||
Gain mdMxSynths 0.737
|
||||
Gain mdVocals 0.751
|
||||
Gain mdBassDag 0
|
||||
Gain mdGuitarDag 0
|
||||
Gain mdVoixDag 0
|
||||
Gain mdMetronome 0.921
|
||||
Gain MonitorsDag 0.921
|
||||
|
|
@ -1,91 +0,0 @@
|
|||
Gain Drums 0.843
|
||||
Gain Basses 0.868
|
||||
Gain Guitars 0.795
|
||||
Gain MxSynths 0.682
|
||||
Gain MxDrums 0.694
|
||||
Gain Vocals 0.76
|
||||
Gain FOH 0.727
|
||||
Gain Kick 0.932
|
||||
Gain Snare 0
|
||||
Gain Toms 0.015
|
||||
Gain OH-L 0.639
|
||||
Gain OH-R 0.641
|
||||
Gain Drums 0.843
|
||||
Gain Bass_ORL 0.883
|
||||
Gain Oct_Bass_ORL 0.921
|
||||
Gain FX_Bass_ORL 0.934
|
||||
Gain Bass_Dag 0.973
|
||||
Gain Oct_Bass_Dag 0.921
|
||||
Gain FX_Bass_Dag 0.868
|
||||
Gain Basses 0.868
|
||||
Gain Guitar_ORL 0.921
|
||||
Gain FX_Gtr_ORL 0.921
|
||||
Gain FX_Gtr_ORL_1 0.921
|
||||
Gain FX_Gtr_ORL_2 0.921
|
||||
Gain Guitar_Dag 0.918
|
||||
Gain FX_Gtr_Dag 0.921
|
||||
Gain FX_Gtr_Dag_1 0.921
|
||||
Gain FX_Gtr_Dag_2 0.921
|
||||
Gain Scape_Gtr_Dag 0.921
|
||||
Gain Guitars 0.795
|
||||
Gain MxBass 0.565
|
||||
Gain MxChords 0.769
|
||||
Gain MxLead 0.836
|
||||
Gain MxCtLead 0.888
|
||||
Gain MxClassical 0.835
|
||||
Gain MxSynths 0.682
|
||||
Gain MxKicks 0.845
|
||||
Gain MxSnares 0.84
|
||||
Gain MxCymbs 0.875
|
||||
Gain MxCont 0.921
|
||||
Gain MxSamples 0.908
|
||||
Gain MxDrums 0.694
|
||||
Gain Vx_ORL 0.947
|
||||
Gain FX_Vx_ORL 0.921
|
||||
Gain FX_Vx_ORL_1 0.921
|
||||
Gain FX_Vx_ORL_2 0.921
|
||||
Gain Vx_Dag 0.946
|
||||
Gain FX_Vx_Dag 0.921
|
||||
Gain FX_Vx_Dag_1 0.921
|
||||
Gain FX_Vx_Dag_2 0.921
|
||||
Gain Scape_Vx_Dag 0.96
|
||||
Gain Vx_Jeannot 0.921
|
||||
Gain Vocals 0.76
|
||||
Gain Tom1 0.901
|
||||
Gain Tom2 0.859
|
||||
Gain Tom3 0.914
|
||||
Gain Toms 0.015
|
||||
Gain FOH 0.727
|
||||
Gain MonitorsJeannot 0.921
|
||||
Gain MonitorsORL 0.921
|
||||
Gain MonitorsDag 0.921
|
||||
Gain mjDrums 0.796
|
||||
Gain mjBasses 0.908
|
||||
Gain mjGuitars 0.8
|
||||
Gain mjMxDrums 0.819
|
||||
Gain mjMxSynths 0.835
|
||||
Gain mjVocals 0.75
|
||||
Gain mjMetronome 0.737
|
||||
Gain MonitorsJeannot 0.921
|
||||
Gain moDrums 0.96
|
||||
Gain moBasses 0.906
|
||||
Gain moGuitars 0.828
|
||||
Gain moMxDrums 0.785
|
||||
Gain moMxSynths 0.726
|
||||
Gain moVocals 0.802
|
||||
Gain moBassORL 0
|
||||
Gain moGuitarORL 0
|
||||
Gain moVxORL 0
|
||||
Gain moMetronome 0.829
|
||||
Gain MonitorsORL 0.921
|
||||
Gain mdDrums 0.921
|
||||
Gain mdBasses 0.905
|
||||
Gain mdGuitars 0.816
|
||||
Gain mdMxDrums 0.721
|
||||
Gain mdMxSynths 0.737
|
||||
Gain mdVocals 0.751
|
||||
Gain mdBassDag 0
|
||||
Gain mdGuitarDag 0
|
||||
Gain mdVoixDag 0
|
||||
Gain mdMetronome 0.921
|
||||
Gain MonitorsDag 0.921
|
||||
|
|
@ -1,373 +0,0 @@
|
|||
EQ_Gain_1 Kick 0.675
|
||||
EQ_Freq_1 Kick 0.023
|
||||
EQ_Band_1 Kick 0.073
|
||||
EQ_Gain_2 Kick 0.5
|
||||
EQ_Freq_2 Kick 0.091
|
||||
EQ_Band_2 Kick 0.111
|
||||
EQ_Gain_3 Kick 0.274
|
||||
EQ_Freq_3 Kick 0.047
|
||||
EQ_Band_3 Kick 0.15
|
||||
EQ_Gain_4 Kick 0.6
|
||||
EQ_Freq_4 Kick 0.202
|
||||
EQ_Band_4 Kick 0.01
|
||||
EQ_Gain_1 Snare 0.5
|
||||
EQ_Freq_1 Snare 0
|
||||
EQ_Band_1 Snare 0
|
||||
EQ_Gain_2 Snare 0.275
|
||||
EQ_Freq_2 Snare 0.154
|
||||
EQ_Band_2 Snare 0.01
|
||||
EQ_Gain_3 Snare 0.35
|
||||
EQ_Freq_3 Snare 0.126
|
||||
EQ_Band_3 Snare 0
|
||||
EQ_Gain_4 Snare 0.413
|
||||
EQ_Freq_4 Snare 0.495
|
||||
EQ_Band_4 Snare 0.175
|
||||
EQ_Gain_1 Bass_Dag 0.637
|
||||
EQ_Freq_1 Bass_Dag 0.026
|
||||
EQ_Band_1 Bass_Dag 0.06
|
||||
EQ_Gain_2 Bass_Dag 0.4
|
||||
EQ_Freq_2 Bass_Dag 0.101
|
||||
EQ_Band_2 Bass_Dag 0.186
|
||||
EQ_Gain_3 Bass_Dag 0.5
|
||||
EQ_Freq_3 Bass_Dag 0
|
||||
EQ_Band_3 Bass_Dag 0
|
||||
EQ_Gain_4 Bass_Dag 0.6
|
||||
EQ_Freq_4 Bass_Dag 0.243
|
||||
EQ_Band_4 Bass_Dag 0.074
|
||||
EQ_Gain_1 Vx_Dag 0.613
|
||||
EQ_Freq_1 Vx_Dag 0.03
|
||||
EQ_Band_1 Vx_Dag 0.01
|
||||
EQ_Gain_2 Vx_Dag 0.325
|
||||
EQ_Freq_2 Vx_Dag 0.061
|
||||
EQ_Band_2 Vx_Dag 0.031
|
||||
EQ_Gain_3 Vx_Dag 0.35
|
||||
EQ_Freq_3 Vx_Dag 0.111
|
||||
EQ_Band_3 Vx_Dag 0.01
|
||||
EQ_Gain_4 Vx_Dag 0.663
|
||||
EQ_Freq_4 Vx_Dag 0.222
|
||||
EQ_Band_4 Vx_Dag 0.022
|
||||
EQ_Gain_1 Vx_ORL 0.699
|
||||
EQ_Freq_1 Vx_ORL 0.025
|
||||
EQ_Band_1 Vx_ORL 0.073
|
||||
EQ_Gain_2 Vx_ORL 0.387
|
||||
EQ_Freq_2 Vx_ORL 0.061
|
||||
EQ_Band_2 Vx_ORL 0.061
|
||||
EQ_Gain_3 Vx_ORL 0.35
|
||||
EQ_Freq_3 Vx_ORL 0.111
|
||||
EQ_Band_3 Vx_ORL 0.01
|
||||
EQ_Gain_4 Vx_ORL 0.626
|
||||
EQ_Freq_4 Vx_ORL 0.152
|
||||
EQ_Band_4 Vx_ORL 0.047
|
||||
EQ_Gain_1 MxBass 0.2
|
||||
EQ_Freq_1 MxBass 0.01
|
||||
EQ_Band_1 MxBass 0
|
||||
EQ_Gain_2 MxBass 0.662
|
||||
EQ_Freq_2 MxBass 0.029
|
||||
EQ_Band_2 MxBass 0.314
|
||||
EQ_Gain_3 MxBass 0.375
|
||||
EQ_Freq_3 MxBass 0.116
|
||||
EQ_Band_3 MxBass 0.2
|
||||
EQ_Gain_4 MxBass 0.088
|
||||
EQ_Freq_4 MxBass 0.722
|
||||
EQ_Band_4 MxBass 0.06
|
||||
EQ_Gain_1 MxKicks 0.675
|
||||
EQ_Freq_1 MxKicks 0.002
|
||||
EQ_Band_1 MxKicks 0.073
|
||||
EQ_Gain_2 MxKicks 0.5
|
||||
EQ_Freq_2 MxKicks 0
|
||||
EQ_Band_2 MxKicks 0
|
||||
EQ_Gain_3 MxKicks 0.5
|
||||
EQ_Freq_3 MxKicks 0
|
||||
EQ_Band_3 MxKicks 0
|
||||
EQ_Gain_4 MxKicks 0.725
|
||||
EQ_Freq_4 MxKicks 0.116
|
||||
EQ_Band_4 MxKicks 0.022
|
||||
EQ_Gain_1 OH-L 0.5
|
||||
EQ_Freq_1 OH-L 0
|
||||
EQ_Band_1 OH-L 0
|
||||
EQ_Gain_2 OH-L 0.5
|
||||
EQ_Freq_2 OH-L 0
|
||||
EQ_Band_2 OH-L 0
|
||||
EQ_Gain_3 OH-L 0.5
|
||||
EQ_Freq_3 OH-L 0
|
||||
EQ_Band_3 OH-L 0
|
||||
EQ_Gain_4 OH-L 0.6
|
||||
EQ_Freq_4 OH-L 0.212
|
||||
EQ_Band_4 OH-L 0.048
|
||||
EQ_Gain_1 OH-R 0.301
|
||||
EQ_Freq_1 OH-R 0.041
|
||||
EQ_Band_1 OH-R 0.01
|
||||
EQ_Gain_2 OH-R 0.625
|
||||
EQ_Freq_2 OH-R 0.092
|
||||
EQ_Band_2 OH-R 0.06
|
||||
EQ_Gain_3 OH-R 0.5
|
||||
EQ_Freq_3 OH-R 0
|
||||
EQ_Band_3 OH-R 0
|
||||
EQ_Gain_4 OH-R 0.838
|
||||
EQ_Freq_4 OH-R 0.162
|
||||
EQ_Band_4 OH-R 0.048
|
||||
EQ_Gain_1 Tom1 0.502
|
||||
EQ_Freq_1 Tom1 0
|
||||
EQ_Band_1 Tom1 0
|
||||
EQ_Gain_2 Tom1 0.502
|
||||
EQ_Freq_2 Tom1 0
|
||||
EQ_Band_2 Tom1 0
|
||||
EQ_Gain_3 Tom1 0.508
|
||||
EQ_Freq_3 Tom1 0
|
||||
EQ_Band_3 Tom1 0
|
||||
EQ_Gain_4 Tom1 0.699
|
||||
EQ_Freq_4 Tom1 0.091
|
||||
EQ_Band_4 Tom1 0.022
|
||||
EQ_Gain_1 Tom2 0.499
|
||||
EQ_Freq_1 Tom2 0
|
||||
EQ_Band_1 Tom2 0
|
||||
EQ_Gain_2 Tom2 0.387
|
||||
EQ_Freq_2 Tom2 0.051
|
||||
EQ_Band_2 Tom2 0.022
|
||||
EQ_Gain_3 Tom2 0.502
|
||||
EQ_Freq_3 Tom2 0
|
||||
EQ_Band_3 Tom2 0
|
||||
EQ_Gain_4 Tom2 0.625
|
||||
EQ_Freq_4 Tom2 0.192
|
||||
EQ_Band_4 Tom2 0.048
|
||||
EQ_Gain_1 Tom3 0.713
|
||||
EQ_Freq_1 Tom3 0.009
|
||||
EQ_Band_1 Tom3 0.099
|
||||
EQ_Gain_2 Tom3 0.137
|
||||
EQ_Freq_2 Tom3 0.014
|
||||
EQ_Band_2 Tom3 0.01
|
||||
EQ_Gain_3 Tom3 0.325
|
||||
EQ_Freq_3 Tom3 0.049
|
||||
EQ_Band_3 Tom3 0.099
|
||||
EQ_Gain_4 Tom3 0.7
|
||||
EQ_Freq_4 Tom3 0.202
|
||||
EQ_Band_4 Tom3 0.048
|
||||
EQ_Gain_1 Scape_Vx_Dag 0.612
|
||||
EQ_Freq_1 Scape_Vx_Dag 0.03
|
||||
EQ_Band_1 Scape_Vx_Dag 0.01
|
||||
EQ_Gain_2 Scape_Vx_Dag 0.325
|
||||
EQ_Freq_2 Scape_Vx_Dag 0.121
|
||||
EQ_Band_2 Scape_Vx_Dag 0
|
||||
EQ_Gain_3 Scape_Vx_Dag 0.66
|
||||
EQ_Freq_3 Scape_Vx_Dag 0.455
|
||||
EQ_Band_3 Scape_Vx_Dag 0.022
|
||||
EQ_Gain_4 Scape_Vx_Dag 0.5
|
||||
EQ_Freq_4 Scape_Vx_Dag 0
|
||||
EQ_Band_4 Scape_Vx_Dag 0
|
||||
EQ_Gain_1 MxCymbs 0.501
|
||||
EQ_Freq_1 MxCymbs 0
|
||||
EQ_Band_1 MxCymbs 0
|
||||
EQ_Gain_2 MxCymbs 0.498
|
||||
EQ_Freq_2 MxCymbs 0
|
||||
EQ_Band_2 MxCymbs 0
|
||||
EQ_Gain_3 MxCymbs 0.5
|
||||
EQ_Freq_3 MxCymbs 0
|
||||
EQ_Band_3 MxCymbs 0
|
||||
EQ_Gain_4 MxCymbs 0.588
|
||||
EQ_Freq_4 MxCymbs 0.253
|
||||
EQ_Band_4 MxCymbs 0.06
|
||||
EQ_Gain_1 Drums 0.625
|
||||
EQ_Freq_1 Drums 0.008
|
||||
EQ_Band_1 Drums 0.073
|
||||
EQ_Gain_2 Drums 0.075
|
||||
EQ_Freq_2 Drums 0.076
|
||||
EQ_Band_2 Drums 0.022
|
||||
EQ_Gain_3 Drums 0.65
|
||||
EQ_Freq_3 Drums 0.111
|
||||
EQ_Band_3 Drums 0.022
|
||||
EQ_Gain_4 Drums 0.65
|
||||
EQ_Freq_4 Drums 0.232
|
||||
EQ_Band_4 Drums 0.048
|
||||
LF_Key Vx_Dag 0
|
||||
HF_Key Vx_Dag 1
|
||||
Threshold Vx_Dag 0.211
|
||||
Attack Vx_Dag 0.01
|
||||
Hold Vx_Dag 0.05
|
||||
Decay Vx_Dag 0.025
|
||||
LF_Key Vx_ORL 0
|
||||
HF_Key Vx_ORL 1
|
||||
Threshold Vx_ORL 0.222
|
||||
Attack Vx_ORL 0.01
|
||||
Hold Vx_ORL 0.049
|
||||
Decay Vx_ORL 0.025
|
||||
LF_Key Kick 0
|
||||
HF_Key Kick 0
|
||||
Threshold Kick 0
|
||||
Attack Kick 0
|
||||
Hold Kick 0
|
||||
Decay Kick 0
|
||||
LF_Key Snare 0
|
||||
HF_Key Snare 0
|
||||
Threshold Snare 0
|
||||
Attack Snare 0
|
||||
Hold Snare 0
|
||||
Decay Snare 0
|
||||
LF_Key Tom1 0
|
||||
HF_Key Tom1 0
|
||||
Threshold Tom1 0
|
||||
Attack Tom1 0
|
||||
Hold Tom1 0
|
||||
Decay Tom1 0
|
||||
LF_Key Tom2 0
|
||||
HF_Key Tom2 0
|
||||
Threshold Tom2 0
|
||||
Attack Tom2 0
|
||||
Hold Tom2 0
|
||||
Decay Tom2 0
|
||||
LF_Key Tom3 0
|
||||
HF_Key Tom3 0
|
||||
Threshold Tom3 0
|
||||
Attack Tom3 0
|
||||
Hold Tom3 0
|
||||
Decay Tom3 0
|
||||
Gain Drums 0.843
|
||||
Gain Basses 0.868
|
||||
Gain Guitars 0.795
|
||||
Gain MxSynths 0.682
|
||||
Gain MxDrums 0.694
|
||||
Gain Vocals 0.76
|
||||
Gain FOH 0.727
|
||||
Gain Kick 0.932
|
||||
Gain Snare 0
|
||||
Gain Toms 0.015
|
||||
Gain OH-L 0.639
|
||||
Gain OH-R 0.641
|
||||
Gain Drums 0.843
|
||||
Gain Bass_ORL 0.883
|
||||
Gain Oct_Bass_ORL 0.921
|
||||
Gain FX_Bass_ORL 0.934
|
||||
Gain Bass_Dag 0.973
|
||||
Gain Oct_Bass_Dag 0.921
|
||||
Gain FX_Bass_Dag 0.868
|
||||
Gain Basses 0.868
|
||||
Gain Guitar_ORL 0.921
|
||||
Gain FX_Gtr_ORL 0.921
|
||||
Gain FX_Gtr_ORL_1 0.921
|
||||
Gain FX_Gtr_ORL_2 0.921
|
||||
Gain Guitar_Dag 0.918
|
||||
Gain FX_Gtr_Dag 0.921
|
||||
Gain FX_Gtr_Dag_1 0.921
|
||||
Gain FX_Gtr_Dag_2 0.921
|
||||
Gain Scape_Gtr_Dag 0.921
|
||||
Gain Guitars 0.795
|
||||
Gain MxBass 0.565
|
||||
Gain MxChords 0.769
|
||||
Gain MxLead 0.836
|
||||
Gain MxCtLead 0.888
|
||||
Gain MxClassical 0.835
|
||||
Gain MxSynths 0.682
|
||||
Gain MxKicks 0.845
|
||||
Gain MxSnares 0.84
|
||||
Gain MxCymbs 0.875
|
||||
Gain MxCont 0.921
|
||||
Gain MxSamples 0.908
|
||||
Gain MxDrums 0.694
|
||||
Gain Vx_ORL 0.947
|
||||
Gain FX_Vx_ORL 0.921
|
||||
Gain FX_Vx_ORL_1 0.921
|
||||
Gain FX_Vx_ORL_2 0.921
|
||||
Gain Vx_Dag 0.946
|
||||
Gain FX_Vx_Dag 0.921
|
||||
Gain FX_Vx_Dag_1 0.921
|
||||
Gain FX_Vx_Dag_2 0.921
|
||||
Gain Scape_Vx_Dag 0.96
|
||||
Gain Vx_Jeannot 0.921
|
||||
Gain Vocals 0.76
|
||||
Gain Tom1 0.901
|
||||
Gain Tom2 0.859
|
||||
Gain Tom3 0.914
|
||||
Gain Toms 0.015
|
||||
Gain FOH 0.727
|
||||
Gain MonitorsJeannot 0.921
|
||||
Gain MonitorsORL 0.921
|
||||
Gain MonitorsDag 0.921
|
||||
Gain mjDrums 0.796
|
||||
Gain mjBasses 0.908
|
||||
Gain mjGuitars 0.8
|
||||
Gain mjMxDrums 0.819
|
||||
Gain mjMxSynths 0.835
|
||||
Gain mjVocals 0.75
|
||||
Gain mjMetronome 0.737
|
||||
Gain MonitorsJeannot 0.921
|
||||
Gain moDrums 0.96
|
||||
Gain moBasses 0.906
|
||||
Gain moGuitars 0.828
|
||||
Gain moMxDrums 0.785
|
||||
Gain moMxSynths 0.726
|
||||
Gain moVocals 0.802
|
||||
Gain moBassORL 0
|
||||
Gain moGuitarORL 0
|
||||
Gain moVxORL 0
|
||||
Gain moMetronome 0.829
|
||||
Gain MonitorsORL 0.921
|
||||
Gain mdDrums 0.921
|
||||
Gain mdBasses 0.905
|
||||
Gain mdGuitars 0.816
|
||||
Gain mdMxDrums 0.721
|
||||
Gain mdMxSynths 0.737
|
||||
Gain mdVocals 0.751
|
||||
Gain mdBassDag 0
|
||||
Gain mdGuitarDag 0
|
||||
Gain mdVoixDag 0
|
||||
Gain mdMetronome 0.921
|
||||
Gain MonitorsDag 0.921
|
||||
EQ_On_1 Kick 0
|
||||
EQ_On_2 Kick 0
|
||||
EQ_On_3 Kick 1
|
||||
EQ_On_4 Kick 1
|
||||
EQ_On_1 Snare 0
|
||||
EQ_On_2 Snare 1
|
||||
EQ_On_3 Snare 1
|
||||
EQ_On_4 Snare 1
|
||||
EQ_On_1 Bass_Dag 0
|
||||
EQ_On_2 Bass_Dag 1
|
||||
EQ_On_3 Bass_Dag 0
|
||||
EQ_On_4 Bass_Dag 1
|
||||
EQ_On_1 Vx_Dag 1
|
||||
EQ_On_2 Vx_Dag 1
|
||||
EQ_On_3 Vx_Dag 1
|
||||
EQ_On_4 Vx_Dag 1
|
||||
EQ_On_1 Vx_ORL 1
|
||||
EQ_On_2 Vx_ORL 1
|
||||
EQ_On_3 Vx_ORL 1
|
||||
EQ_On_4 Vx_ORL 1
|
||||
EQ_On_1 MxBass 1
|
||||
EQ_On_2 MxBass 1
|
||||
EQ_On_3 MxBass 1
|
||||
EQ_On_4 MxBass 1
|
||||
EQ_On_1 MxKicks 1
|
||||
EQ_On_2 MxKicks 0
|
||||
EQ_On_3 MxKicks 0
|
||||
EQ_On_4 MxKicks 1
|
||||
EQ_On_1 OH-L 0
|
||||
EQ_On_2 OH-L 0
|
||||
EQ_On_3 OH-L 0
|
||||
EQ_On_4 OH-L 1
|
||||
EQ_On_1 OH-R 1
|
||||
EQ_On_2 OH-R 1
|
||||
EQ_On_3 OH-R 0
|
||||
EQ_On_4 OH-R 1
|
||||
EQ_On_1 Tom1 0
|
||||
EQ_On_2 Tom1 0
|
||||
EQ_On_3 Tom1 0
|
||||
EQ_On_4 Tom1 1
|
||||
EQ_On_1 Tom2 0
|
||||
EQ_On_2 Tom2 1
|
||||
EQ_On_3 Tom2 0
|
||||
EQ_On_4 Tom2 1
|
||||
EQ_On_1 Tom3 1
|
||||
EQ_On_2 Tom3 1
|
||||
EQ_On_3 Tom3 1
|
||||
EQ_On_4 Tom3 1
|
||||
EQ_On_1 Scape_Vx_Dag 1
|
||||
EQ_On_2 Scape_Vx_Dag 1
|
||||
EQ_On_3 Scape_Vx_Dag 1
|
||||
EQ_On_4 Scape_Vx_Dag 0
|
||||
EQ_On_1 MxCymbs 0
|
||||
EQ_On_2 MxCymbs 0
|
||||
EQ_On_3 MxCymbs 0
|
||||
EQ_On_4 MxCymbs 1
|
||||
EQ_On_1 Drums 1
|
||||
EQ_On_2 Drums 1
|
||||
EQ_On_3 Drums 1
|
||||
EQ_On_4 Drums 1
|
||||
|
|
@ -1,407 +0,0 @@
|
|||
* {
|
||||
margin:0;
|
||||
padding:0;
|
||||
box-sizing:border-box;
|
||||
text-decoration:none;
|
||||
outline:0;
|
||||
}
|
||||
::selection {
|
||||
background:transparent;
|
||||
}
|
||||
|
||||
body {
|
||||
font-size:14px;
|
||||
line-height:20px;
|
||||
font-family:sans;
|
||||
background:#000;
|
||||
color:#fff;
|
||||
position:relative;
|
||||
padding:20px;
|
||||
}
|
||||
html, body {
|
||||
height:100%;
|
||||
overflow:hidden;
|
||||
}
|
||||
|
||||
#tabs {
|
||||
position:absolute;
|
||||
top:100px;
|
||||
left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
background:none;
|
||||
border:none;
|
||||
padding:0;
|
||||
}
|
||||
#tabs > div {
|
||||
height:auto;
|
||||
position:absolute;
|
||||
top:50px;
|
||||
bottom:0;
|
||||
left:0;
|
||||
right:0;
|
||||
padding:0;
|
||||
padding-top:10px;
|
||||
}
|
||||
#tabs > ul {
|
||||
background:none;
|
||||
border:none;
|
||||
padding:0;
|
||||
display: table;
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
table-layout:fixed;
|
||||
}
|
||||
#tabs > ul li{
|
||||
display: table-cell;
|
||||
float: none;
|
||||
background:none;
|
||||
border:none;
|
||||
padding:4px;
|
||||
width:100%;
|
||||
}
|
||||
#tabs > ul li a {
|
||||
display:block;
|
||||
float:none;
|
||||
text-align:center;
|
||||
background:rgba(70, 186, 191,0.1);
|
||||
border: 1px solid rgba(70, 186, 191,0.3);
|
||||
color:#fff;
|
||||
border-radius:4px;
|
||||
padding:15px;
|
||||
text-overflow:ellipsis;
|
||||
overflow:hidden;
|
||||
|
||||
}
|
||||
#tabs > ul li.ui-tabs-active a {
|
||||
background:rgba(70, 186, 191,.7);
|
||||
}
|
||||
.table {
|
||||
width:100%;
|
||||
height:100%;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
.table tr, .table td {
|
||||
height:100%;
|
||||
}
|
||||
.table td {
|
||||
padding:4px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
#tabs .subtabs {
|
||||
position:absolute;
|
||||
top:60px;
|
||||
left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
background:none;
|
||||
border:none;
|
||||
padding:0;
|
||||
}
|
||||
#tabs .subtabs > div {
|
||||
height:auto;
|
||||
position:absolute;
|
||||
top:50px;
|
||||
bottom:0;
|
||||
left:0;
|
||||
right:0;
|
||||
padding:0;
|
||||
padding-top:10px;
|
||||
}
|
||||
#tabs .subtabs > ul {
|
||||
background:none;
|
||||
border:none;
|
||||
padding:0;
|
||||
display: table;
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
table-layout:fixed;
|
||||
}
|
||||
#tabs .subtabs > ul li{
|
||||
display: table-cell;
|
||||
float: none;
|
||||
background:none;
|
||||
border:none;
|
||||
padding:4px;
|
||||
width:100%;
|
||||
}
|
||||
#tabs .subtabs > ul li a {
|
||||
display:block;
|
||||
float:none;
|
||||
text-align:center;
|
||||
background:rgba(70, 186, 191,0.1);
|
||||
border: 1px solid rgba(70, 186, 191,0.3);
|
||||
color:#fff;
|
||||
border-radius:4px;
|
||||
padding:15px;
|
||||
text-overflow:ellipsis;
|
||||
overflow:hidden;
|
||||
|
||||
}
|
||||
#tabs .subtabs > ul li.ui-tabs-active a {
|
||||
background:rgba(70, 186, 191,.7);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* FXSTRIP */
|
||||
|
||||
.fxstrip {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
position:relative;
|
||||
display:block;
|
||||
overflow:hidden;
|
||||
|
||||
}
|
||||
|
||||
|
||||
.fxstrip .paramblock {
|
||||
width:48%;
|
||||
display:inline-block;
|
||||
padding-bottom:10px;
|
||||
margin-top:10px;
|
||||
border-bottom:1px solid rgba(70, 186, 191,0.3);
|
||||
|
||||
}
|
||||
.fxstrip .paramblock:nth-child(2n) {
|
||||
margin:0 1%;
|
||||
}
|
||||
|
||||
.fxstrip .slider-container {
|
||||
width:auto;
|
||||
height:50px;
|
||||
overflow:hidden;padding:2px;
|
||||
}
|
||||
.fxstrip .horizontal-slider {
|
||||
width:100%;
|
||||
height:100%;
|
||||
overflow:visible;
|
||||
}
|
||||
|
||||
|
||||
.fxstrip .ui-slider {
|
||||
background:rgba(70, 186, 191,0.1);
|
||||
border: 1px solid rgba(70, 186, 191,0.1);
|
||||
}
|
||||
.fxstrip .ui-slider-handle {
|
||||
background:rgba(255,100,100,0.5);
|
||||
color:#fff;
|
||||
border-color:transparent;
|
||||
border-radius:0px;
|
||||
border:0;
|
||||
}
|
||||
|
||||
|
||||
.fxstrip .ui-slider-handle:before {
|
||||
content:"";
|
||||
position:absolute;
|
||||
width:10000px;height:10000px;
|
||||
left:50%;
|
||||
margin-left:-5000px;
|
||||
top:50%;
|
||||
margin-top:-5000px;
|
||||
border-color:transparent;
|
||||
background:#fff;
|
||||
opacity:0;
|
||||
z-index:10000;
|
||||
}
|
||||
.fxstrip .horizontal-slider .ui-slider-handle {
|
||||
width: auto;
|
||||
height: 100%;
|
||||
margin:0;
|
||||
width:4px;
|
||||
top:0;
|
||||
|
||||
}
|
||||
|
||||
.fxstrip .horizontal-slider .value{
|
||||
width:100%;
|
||||
text-align:center;
|
||||
color:#fff;
|
||||
|
||||
}
|
||||
.fxstrip .horizontal-slider .label{
|
||||
width:100%;
|
||||
text-align:center;
|
||||
color:#fff;
|
||||
}
|
||||
.fxstrip .toggle {
|
||||
margin-bottom:5px;
|
||||
height:40px;
|
||||
padding:5px 10px;
|
||||
text-align:center;
|
||||
background:rgba(70, 186, 191,0.1);
|
||||
border: 1px solid rgba(70, 186, 191,0.3);
|
||||
color:#fff;
|
||||
|
||||
}
|
||||
.fxstrip .toggle .ui-button-text {
|
||||
padding:5px;
|
||||
}
|
||||
.fxstrip .toggle.enabled {
|
||||
background:rgba(70, 186, 191,0.6);
|
||||
}
|
||||
|
||||
|
||||
/* AUDIOSTRIP */
|
||||
|
||||
.audiostrip {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
position:relative;
|
||||
display:block;
|
||||
overflow:hidden;
|
||||
}
|
||||
.audiostrip.main {
|
||||
background: rgba(70, 186, 191,0.1);
|
||||
}
|
||||
|
||||
.audiostrip .name {
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
height:50px;
|
||||
right: 0px;
|
||||
text-overflow:ellipsis;
|
||||
overflow:hidden;
|
||||
}
|
||||
.audiostrip .name .ui-button-text {
|
||||
padding:15px;
|
||||
}
|
||||
|
||||
|
||||
.audiostrip .ui-slider {
|
||||
background:rgba(70, 186, 191,0.1);
|
||||
border: 1px solid rgba(70, 186, 191,0.1);
|
||||
}
|
||||
.audiostrip .ui-slider-range {
|
||||
background:rgba(70, 186, 191,0.6);
|
||||
border-radius:0;
|
||||
}
|
||||
.audiostrip .ui-slider-handle {
|
||||
background:rgba(255,100,100,0.5);
|
||||
color:#fff;
|
||||
border-color:transparent;
|
||||
border-radius:0px;
|
||||
border:0;
|
||||
}
|
||||
|
||||
|
||||
.audiostrip .ui-slider-handle:before {
|
||||
content:"";
|
||||
position:absolute;
|
||||
width:400px;height:10000px;
|
||||
left:50%;
|
||||
margin-left:-200px;
|
||||
top:50%;
|
||||
margin-top:-5000px;
|
||||
border-color:transparent;
|
||||
background:#fff;
|
||||
opacity:0;
|
||||
z-index:10000;
|
||||
}
|
||||
|
||||
|
||||
.audiostrip .slider-container {
|
||||
position: absolute;
|
||||
height:auto;
|
||||
top:60px;
|
||||
bottom:0px;
|
||||
left:0px;
|
||||
right:0px;
|
||||
width:auto;
|
||||
overflow:hidden;
|
||||
}
|
||||
.audiostrip .vertical-slider {
|
||||
position: absolute;
|
||||
height:auto;
|
||||
top:0px;
|
||||
bottom:20px;
|
||||
left:0px;
|
||||
right:0px;
|
||||
width:auto;
|
||||
overflow:visible;
|
||||
}
|
||||
.audiostrip .vertical-slider:before {
|
||||
content:"";
|
||||
position:absolute;
|
||||
width:88px;height:100%;
|
||||
left:-40px;
|
||||
top:0;
|
||||
opacity:0;
|
||||
background:#fff;
|
||||
}
|
||||
.audiostrip .vertical-slider:after {
|
||||
content:"";
|
||||
position:absolute;
|
||||
bottom:92%;
|
||||
left:1px;right:1px;
|
||||
height:1px;
|
||||
background:rgba(70, 186, 191,.2);
|
||||
}
|
||||
.audiostrip .vertical-slider .ui-slider-handle {
|
||||
width: auto;
|
||||
height: 1px;
|
||||
margin:0;
|
||||
left: 0;right:0;
|
||||
|
||||
}
|
||||
.audiostrip .vertical-slider .value{
|
||||
position:absolute;
|
||||
left:0;
|
||||
right:0;
|
||||
margin-top:-0px;
|
||||
top:50%;
|
||||
text-align:center;
|
||||
}
|
||||
.audiostrip .vertical-slider .value:after{
|
||||
content:" dB";
|
||||
}
|
||||
|
||||
|
||||
.audiostrip .name, .fxstrip .name {
|
||||
color:#fff;
|
||||
background:rgba(70, 186, 191,0.1);
|
||||
border: 1px solid rgba(70, 186, 191,0.3);
|
||||
}
|
||||
.audiostrip .name.disabled, .fxstrip .name.disabled {
|
||||
background:rgba(70, 186, 191,0.01);
|
||||
border: 1px solid rgba(70, 186, 191,0.1);
|
||||
}
|
||||
|
||||
.save {margin-left:150px;}
|
||||
.left {float:left;}
|
||||
.right {float:right;}
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
|
||||
|
||||
.audiostrip .toggle {
|
||||
position: absolute;
|
||||
height:30px;
|
||||
bottom:0px;
|
||||
left:0px;
|
||||
right:0px;
|
||||
text-align:center;
|
||||
background:rgba(70, 186, 191,0.1);
|
||||
border: 1px solid rgba(70, 186, 191,0.3);
|
||||
color:#fff;
|
||||
|
||||
}
|
||||
.audiostrip .toggle .ui-button-text {
|
||||
padding:5px;
|
||||
}
|
||||
.audiostrip .toggle.enabled {
|
||||
background:rgba(70, 186, 191,0.6);
|
||||
}
|
||||
|
||||
*/
|
||||
14
jeannot.py
Normal file
14
jeannot.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import sys
|
||||
from os import path as os_path
|
||||
sys.path.append(os_path.dirname(os_path.abspath(__file__))+'/lib')
|
||||
from oschtmlgui import oscHtmlGui
|
||||
|
||||
|
||||
gui = oscHtmlGui(
|
||||
port=3333,
|
||||
presetName='sebkhachott',
|
||||
config='monitorsjeannot.js'
|
||||
)
|
||||
|
||||
|
||||
gui.main()
|
||||
18
lib/base.html
Normal file
18
lib/base.html
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html;charset=utf-8">
|
||||
<script type="text/javascript" src="jquery.js"></script>
|
||||
<script type="text/javascript" src="jquery.nouislider.all.js"></script>
|
||||
<script type="text/javascript" src="jquery.nicescroll.min.js"></script>
|
||||
<script type="text/javascript" src="oschtmlgui.js"></script>
|
||||
<link rel="stylesheet" href="jquery.nouislider.css"/>
|
||||
<link rel="stylesheet" href="style.css"/>
|
||||
<script type="text/javascript">
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="__container__">
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
0
example/jquery.js → lib/jquery.js
vendored
0
example/jquery.js → lib/jquery.js
vendored
118
lib/jquery.nicescroll.min.js
vendored
Normal file
118
lib/jquery.nicescroll.min.js
vendored
Normal file
|
|
@ -0,0 +1,118 @@
|
|||
/* jquery.nicescroll 3.6.0 InuYaksa*2014 MIT http://nicescroll.areaaperta.com */(function(f){"function"===typeof define&&define.amd?define(["jquery"],f):f(jQuery)})(function(f){var y=!1,D=!1,N=0,O=2E3,x=0,H=["webkit","ms","moz","o"],s=window.requestAnimationFrame||!1,t=window.cancelAnimationFrame||!1;if(!s)for(var P in H){var E=H[P];s||(s=window[E+"RequestAnimationFrame"]);t||(t=window[E+"CancelAnimationFrame"]||window[E+"CancelRequestAnimationFrame"])}var v=window.MutationObserver||window.WebKitMutationObserver||!1,I={zindex:"auto",cursoropacitymin:0,cursoropacitymax:1,cursorcolor:"#424242",
|
||||
cursorwidth:"5px",cursorborder:"1px solid #fff",cursorborderradius:"5px",scrollspeed:60,mousescrollstep:24,touchbehavior:!1,hwacceleration:!0,usetransition:!0,boxzoom:!1,dblclickzoom:!0,gesturezoom:!0,grabcursorenabled:!0,autohidemode:!0,background:"",iframeautoresize:!0,cursorminheight:32,preservenativescrolling:!0,railoffset:!1,railhoffset:!1,bouncescroll:!0,spacebarenabled:!0,railpadding:{top:0,right:0,left:0,bottom:0},disableoutline:!0,horizrailenabled:!0,railalign:"right",railvalign:"bottom",
|
||||
enabletranslate3d:!0,enablemousewheel:!0,enablekeyboard:!0,smoothscroll:!0,sensitiverail:!0,enablemouselockapi:!0,cursorfixedheight:!1,directionlockdeadzone:6,hidecursordelay:400,nativeparentscrolling:!0,enablescrollonselection:!0,overflowx:!0,overflowy:!0,cursordragspeed:.3,rtlmode:"auto",cursordragontouch:!1,oneaxismousemode:"auto",scriptpath:function(){var f=document.getElementsByTagName("script"),f=f[f.length-1].src.split("?")[0];return 0<f.split("/").length?f.split("/").slice(0,-1).join("/")+
|
||||
"/":""}(),preventmultitouchscrolling:!0},F=!1,Q=function(){if(F)return F;var f=document.createElement("DIV"),c=f.style,h=navigator.userAgent,m=navigator.platform,d={haspointerlock:"pointerLockElement"in document||"webkitPointerLockElement"in document||"mozPointerLockElement"in document};d.isopera="opera"in window;d.isopera12=d.isopera&&"getUserMedia"in navigator;d.isoperamini="[object OperaMini]"===Object.prototype.toString.call(window.operamini);d.isie="all"in document&&"attachEvent"in f&&!d.isopera;
|
||||
d.isieold=d.isie&&!("msInterpolationMode"in c);d.isie7=d.isie&&!d.isieold&&(!("documentMode"in document)||7==document.documentMode);d.isie8=d.isie&&"documentMode"in document&&8==document.documentMode;d.isie9=d.isie&&"performance"in window&&9<=document.documentMode;d.isie10=d.isie&&"performance"in window&&10==document.documentMode;d.isie11="msRequestFullscreen"in f&&11<=document.documentMode;d.isie9mobile=/iemobile.9/i.test(h);d.isie9mobile&&(d.isie9=!1);d.isie7mobile=!d.isie9mobile&&d.isie7&&/iemobile/i.test(h);
|
||||
d.ismozilla="MozAppearance"in c;d.iswebkit="WebkitAppearance"in c;d.ischrome="chrome"in window;d.ischrome22=d.ischrome&&d.haspointerlock;d.ischrome26=d.ischrome&&"transition"in c;d.cantouch="ontouchstart"in document.documentElement||"ontouchstart"in window;d.hasmstouch=window.MSPointerEvent||!1;d.hasw3ctouch=window.PointerEvent||!1;d.ismac=/^mac$/i.test(m);d.isios=d.cantouch&&/iphone|ipad|ipod/i.test(m);d.isios4=d.isios&&!("seal"in Object);d.isios7=d.isios&&"webkitHidden"in document;d.isandroid=/android/i.test(h);
|
||||
d.haseventlistener="addEventListener"in f;d.trstyle=!1;d.hastransform=!1;d.hastranslate3d=!1;d.transitionstyle=!1;d.hastransition=!1;d.transitionend=!1;m=["transform","msTransform","webkitTransform","MozTransform","OTransform"];for(h=0;h<m.length;h++)if("undefined"!=typeof c[m[h]]){d.trstyle=m[h];break}d.hastransform=!!d.trstyle;d.hastransform&&(c[d.trstyle]="translate3d(1px,2px,3px)",d.hastranslate3d=/translate3d/.test(c[d.trstyle]));d.transitionstyle=!1;d.prefixstyle="";d.transitionend=!1;for(var m=
|
||||
"transition webkitTransition msTransition MozTransition OTransition OTransition KhtmlTransition".split(" "),n=" -webkit- -ms- -moz- -o- -o -khtml-".split(" "),p="transitionend webkitTransitionEnd msTransitionEnd transitionend otransitionend oTransitionEnd KhtmlTransitionEnd".split(" "),h=0;h<m.length;h++)if(m[h]in c){d.transitionstyle=m[h];d.prefixstyle=n[h];d.transitionend=p[h];break}d.ischrome26&&(d.prefixstyle=n[1]);d.hastransition=d.transitionstyle;a:{h=["-webkit-grab","-moz-grab","grab"];if(d.ischrome&&
|
||||
!d.ischrome22||d.isie)h=[];for(m=0;m<h.length;m++)if(n=h[m],c.cursor=n,c.cursor==n){c=n;break a}c="url(//mail.google.com/mail/images/2/openhand.cur),n-resize"}d.cursorgrabvalue=c;d.hasmousecapture="setCapture"in f;d.hasMutationObserver=!1!==v;return F=d},R=function(k,c){function h(){var b=a.doc.css(e.trstyle);return b&&"matrix"==b.substr(0,6)?b.replace(/^.*\((.*)\)$/g,"$1").replace(/px/g,"").split(/, +/):!1}function m(){var b=a.win;if("zIndex"in b)return b.zIndex();for(;0<b.length&&9!=b[0].nodeType;){var g=
|
||||
b.css("zIndex");if(!isNaN(g)&&0!=g)return parseInt(g);b=b.parent()}return!1}function d(b,g,q){g=b.css(g);b=parseFloat(g);return isNaN(b)?(b=w[g]||0,q=3==b?q?a.win.outerHeight()-a.win.innerHeight():a.win.outerWidth()-a.win.innerWidth():1,a.isie8&&b&&(b+=1),q?b:0):b}function n(b,g,q,c){a._bind(b,g,function(a){a=a?a:window.event;var c={original:a,target:a.target||a.srcElement,type:"wheel",deltaMode:"MozMousePixelScroll"==a.type?0:1,deltaX:0,deltaZ:0,preventDefault:function(){a.preventDefault?a.preventDefault():
|
||||
a.returnValue=!1;return!1},stopImmediatePropagation:function(){a.stopImmediatePropagation?a.stopImmediatePropagation():a.cancelBubble=!0}};"mousewheel"==g?(c.deltaY=-.025*a.wheelDelta,a.wheelDeltaX&&(c.deltaX=-.025*a.wheelDeltaX)):c.deltaY=a.detail;return q.call(b,c)},c)}function p(b,g,c){var d,e;0==b.deltaMode?(d=-Math.floor(a.opt.mousescrollstep/54*b.deltaX),e=-Math.floor(a.opt.mousescrollstep/54*b.deltaY)):1==b.deltaMode&&(d=-Math.floor(b.deltaX*a.opt.mousescrollstep),e=-Math.floor(b.deltaY*a.opt.mousescrollstep));
|
||||
g&&a.opt.oneaxismousemode&&0==d&&e&&(d=e,e=0,c&&(0>d?a.getScrollLeft()>=a.page.maxw:0>=a.getScrollLeft())&&(e=d,d=0));d&&(a.scrollmom&&a.scrollmom.stop(),a.lastdeltax+=d,a.debounced("mousewheelx",function(){var b=a.lastdeltax;a.lastdeltax=0;a.rail.drag||a.doScrollLeftBy(b)},15));if(e){if(a.opt.nativeparentscrolling&&c&&!a.ispage&&!a.zoomactive)if(0>e){if(a.getScrollTop()>=a.page.maxh)return!0}else if(0>=a.getScrollTop())return!0;a.scrollmom&&a.scrollmom.stop();a.lastdeltay+=e;a.debounced("mousewheely",
|
||||
function(){var b=a.lastdeltay;a.lastdeltay=0;a.rail.drag||a.doScrollBy(b)},15)}b.stopImmediatePropagation();return b.preventDefault()}var a=this;this.version="3.6.0";this.name="nicescroll";this.me=c;this.opt={doc:f("body"),win:!1};f.extend(this.opt,I);this.opt.snapbackspeed=80;if(k)for(var G in a.opt)"undefined"!=typeof k[G]&&(a.opt[G]=k[G]);this.iddoc=(this.doc=a.opt.doc)&&this.doc[0]?this.doc[0].id||"":"";this.ispage=/^BODY|HTML/.test(a.opt.win?a.opt.win[0].nodeName:this.doc[0].nodeName);this.haswrapper=
|
||||
!1!==a.opt.win;this.win=a.opt.win||(this.ispage?f(window):this.doc);this.docscroll=this.ispage&&!this.haswrapper?f(window):this.win;this.body=f("body");this.iframe=this.isfixed=this.viewport=!1;this.isiframe="IFRAME"==this.doc[0].nodeName&&"IFRAME"==this.win[0].nodeName;this.istextarea="TEXTAREA"==this.win[0].nodeName;this.forcescreen=!1;this.canshowonmouseevent="scroll"!=a.opt.autohidemode;this.page=this.view=this.onzoomout=this.onzoomin=this.onscrollcancel=this.onscrollend=this.onscrollstart=this.onclick=
|
||||
this.ongesturezoom=this.onkeypress=this.onmousewheel=this.onmousemove=this.onmouseup=this.onmousedown=!1;this.scroll={x:0,y:0};this.scrollratio={x:0,y:0};this.cursorheight=20;this.scrollvaluemax=0;this.isrtlmode="auto"==this.opt.rtlmode?"rtl"==(this.win[0]==window?this.body:this.win).css("direction"):!0===this.opt.rtlmode;this.observerbody=this.observerremover=this.observer=this.scrollmom=this.scrollrunning=!1;do this.id="ascrail"+O++;while(document.getElementById(this.id));this.hasmousefocus=this.hasfocus=
|
||||
this.zoomactive=this.zoom=this.selectiondrag=this.cursorfreezed=this.cursor=this.rail=!1;this.visibility=!0;this.hidden=this.locked=this.railslocked=!1;this.cursoractive=!0;this.wheelprevented=!1;this.overflowx=a.opt.overflowx;this.overflowy=a.opt.overflowy;this.nativescrollingarea=!1;this.checkarea=0;this.events=[];this.saved={};this.delaylist={};this.synclist={};this.lastdeltay=this.lastdeltax=0;this.detected=Q();var e=f.extend({},this.detected);this.ishwscroll=(this.canhwscroll=e.hastransform&&
|
||||
a.opt.hwacceleration)&&a.haswrapper;this.hasreversehr=this.isrtlmode&&!e.iswebkit;this.istouchcapable=!1;!e.cantouch||e.isios||e.isandroid||!e.iswebkit&&!e.ismozilla||(this.istouchcapable=!0,e.cantouch=!1);a.opt.enablemouselockapi||(e.hasmousecapture=!1,e.haspointerlock=!1);this.debounced=function(b,g,c){var d=a.delaylist[b];a.delaylist[b]=g;d||setTimeout(function(){var g=a.delaylist[b];a.delaylist[b]=!1;g.call(a)},c)};var r=!1;this.synched=function(b,g){a.synclist[b]=g;(function(){r||(s(function(){r=
|
||||
!1;for(var b in a.synclist){var g=a.synclist[b];g&&g.call(a);a.synclist[b]=!1}}),r=!0)})();return b};this.unsynched=function(b){a.synclist[b]&&(a.synclist[b]=!1)};this.css=function(b,g){for(var c in g)a.saved.css.push([b,c,b.css(c)]),b.css(c,g[c])};this.scrollTop=function(b){return"undefined"==typeof b?a.getScrollTop():a.setScrollTop(b)};this.scrollLeft=function(b){return"undefined"==typeof b?a.getScrollLeft():a.setScrollLeft(b)};var A=function(a,g,c,d,e,f,h){this.st=a;this.ed=g;this.spd=c;this.p1=
|
||||
d||0;this.p2=e||1;this.p3=f||0;this.p4=h||1;this.ts=(new Date).getTime();this.df=this.ed-this.st};A.prototype={B2:function(a){return 3*a*a*(1-a)},B3:function(a){return 3*a*(1-a)*(1-a)},B4:function(a){return(1-a)*(1-a)*(1-a)},getNow:function(){var a=1-((new Date).getTime()-this.ts)/this.spd,g=this.B2(a)+this.B3(a)+this.B4(a);return 0>a?this.ed:this.st+Math.round(this.df*g)},update:function(a,g){this.st=this.getNow();this.ed=a;this.spd=g;this.ts=(new Date).getTime();this.df=this.ed-this.st;return this}};
|
||||
if(this.ishwscroll){this.doc.translate={x:0,y:0,tx:"0px",ty:"0px"};e.hastranslate3d&&e.isios&&this.doc.css("-webkit-backface-visibility","hidden");this.getScrollTop=function(b){if(!b){if(b=h())return 16==b.length?-b[13]:-b[5];if(a.timerscroll&&a.timerscroll.bz)return a.timerscroll.bz.getNow()}return a.doc.translate.y};this.getScrollLeft=function(b){if(!b){if(b=h())return 16==b.length?-b[12]:-b[4];if(a.timerscroll&&a.timerscroll.bh)return a.timerscroll.bh.getNow()}return a.doc.translate.x};this.notifyScrollEvent=
|
||||
function(a){var g=document.createEvent("UIEvents");g.initUIEvent("scroll",!1,!0,window,1);g.niceevent=!0;a.dispatchEvent(g)};var K=this.isrtlmode?1:-1;e.hastranslate3d&&a.opt.enabletranslate3d?(this.setScrollTop=function(b,g){a.doc.translate.y=b;a.doc.translate.ty=-1*b+"px";a.doc.css(e.trstyle,"translate3d("+a.doc.translate.tx+","+a.doc.translate.ty+",0px)");g||a.notifyScrollEvent(a.win[0])},this.setScrollLeft=function(b,g){a.doc.translate.x=b;a.doc.translate.tx=b*K+"px";a.doc.css(e.trstyle,"translate3d("+
|
||||
a.doc.translate.tx+","+a.doc.translate.ty+",0px)");g||a.notifyScrollEvent(a.win[0])}):(this.setScrollTop=function(b,g){a.doc.translate.y=b;a.doc.translate.ty=-1*b+"px";a.doc.css(e.trstyle,"translate("+a.doc.translate.tx+","+a.doc.translate.ty+")");g||a.notifyScrollEvent(a.win[0])},this.setScrollLeft=function(b,g){a.doc.translate.x=b;a.doc.translate.tx=b*K+"px";a.doc.css(e.trstyle,"translate("+a.doc.translate.tx+","+a.doc.translate.ty+")");g||a.notifyScrollEvent(a.win[0])})}else this.getScrollTop=
|
||||
function(){return a.docscroll.scrollTop()},this.setScrollTop=function(b){return a.docscroll.scrollTop(b)},this.getScrollLeft=function(){return a.detected.ismozilla&&a.isrtlmode?Math.abs(a.docscroll.scrollLeft()):a.docscroll.scrollLeft()},this.setScrollLeft=function(b){return a.docscroll.scrollLeft(a.detected.ismozilla&&a.isrtlmode?-b:b)};this.getTarget=function(a){return a?a.target?a.target:a.srcElement?a.srcElement:!1:!1};this.hasParent=function(a,g){if(!a)return!1;for(var c=a.target||a.srcElement||
|
||||
a||!1;c&&c.id!=g;)c=c.parentNode||!1;return!1!==c};var w={thin:1,medium:3,thick:5};this.getDocumentScrollOffset=function(){return{top:window.pageYOffset||document.documentElement.scrollTop,left:window.pageXOffset||document.documentElement.scrollLeft}};this.getOffset=function(){if(a.isfixed){var b=a.win.offset(),g=a.getDocumentScrollOffset();b.top-=g.top;b.left-=g.left;return b}b=a.win.offset();if(!a.viewport)return b;g=a.viewport.offset();return{top:b.top-g.top,left:b.left-g.left}};this.updateScrollBar=
|
||||
function(b){if(a.ishwscroll)a.rail.css({height:a.win.innerHeight()-(a.opt.railpadding.top+a.opt.railpadding.bottom)}),a.railh&&a.railh.css({width:a.win.innerWidth()-(a.opt.railpadding.left+a.opt.railpadding.right)});else{var g=a.getOffset(),c=g.top,e=g.left-(a.opt.railpadding.left+a.opt.railpadding.right),c=c+d(a.win,"border-top-width",!0),e=e+(a.rail.align?a.win.outerWidth()-d(a.win,"border-right-width")-a.rail.width:d(a.win,"border-left-width")),f=a.opt.railoffset;f&&(f.top&&(c+=f.top),a.rail.align&&
|
||||
f.left&&(e+=f.left));a.railslocked||a.rail.css({top:c,left:e,height:(b?b.h:a.win.innerHeight())-(a.opt.railpadding.top+a.opt.railpadding.bottom)});a.zoom&&a.zoom.css({top:c+1,left:1==a.rail.align?e-20:e+a.rail.width+4});if(a.railh&&!a.railslocked){c=g.top;e=g.left;if(f=a.opt.railhoffset)f.top&&(c+=f.top),f.left&&(e+=f.left);b=a.railh.align?c+d(a.win,"border-top-width",!0)+a.win.innerHeight()-a.railh.height:c+d(a.win,"border-top-width",!0);e+=d(a.win,"border-left-width");a.railh.css({top:b-(a.opt.railpadding.top+
|
||||
a.opt.railpadding.bottom),left:e,width:a.railh.width})}}};this.doRailClick=function(b,g,c){var e;a.railslocked||(a.cancelEvent(b),g?(g=c?a.doScrollLeft:a.doScrollTop,e=c?(b.pageX-a.railh.offset().left-a.cursorwidth/2)*a.scrollratio.x:(b.pageY-a.rail.offset().top-a.cursorheight/2)*a.scrollratio.y,g(e)):(g=c?a.doScrollLeftBy:a.doScrollBy,e=c?a.scroll.x:a.scroll.y,b=c?b.pageX-a.railh.offset().left:b.pageY-a.rail.offset().top,c=c?a.view.w:a.view.h,g(e>=b?c:-c)))};a.hasanimationframe=s;a.hascancelanimationframe=
|
||||
t;a.hasanimationframe?a.hascancelanimationframe||(t=function(){a.cancelAnimationFrame=!0}):(s=function(a){return setTimeout(a,15-Math.floor(+new Date/1E3)%16)},t=clearInterval);this.init=function(){a.saved.css=[];if(e.isie7mobile||e.isoperamini)return!0;e.hasmstouch&&a.css(a.ispage?f("html"):a.win,{"-ms-touch-action":"none"});a.zindex="auto";a.zindex=a.ispage||"auto"!=a.opt.zindex?a.opt.zindex:m()||"auto";!a.ispage&&"auto"!=a.zindex&&a.zindex>x&&(x=a.zindex);a.isie&&0==a.zindex&&"auto"==a.opt.zindex&&
|
||||
(a.zindex="auto");if(!a.ispage||!e.cantouch&&!e.isieold&&!e.isie9mobile){var b=a.docscroll;a.ispage&&(b=a.haswrapper?a.win:a.doc);e.isie9mobile||a.css(b,{"overflow-y":"hidden"});a.ispage&&e.isie7&&("BODY"==a.doc[0].nodeName?a.css(f("html"),{"overflow-y":"hidden"}):"HTML"==a.doc[0].nodeName&&a.css(f("body"),{"overflow-y":"hidden"}));!e.isios||a.ispage||a.haswrapper||a.css(f("body"),{"-webkit-overflow-scrolling":"touch"});var g=f(document.createElement("div"));g.css({position:"relative",top:0,"float":"right",
|
||||
width:a.opt.cursorwidth,height:"0px","background-color":a.opt.cursorcolor,border:a.opt.cursorborder,"background-clip":"padding-box","-webkit-border-radius":a.opt.cursorborderradius,"-moz-border-radius":a.opt.cursorborderradius,"border-radius":a.opt.cursorborderradius});g.hborder=parseFloat(g.outerHeight()-g.innerHeight());g.addClass("nicescroll-cursors");a.cursor=g;var c=f(document.createElement("div"));c.attr("id",a.id);c.addClass("nicescroll-rails nicescroll-rails-vr");var d,h,k=["left","right",
|
||||
"top","bottom"],J;for(J in k)h=k[J],(d=a.opt.railpadding[h])?c.css("padding-"+h,d+"px"):a.opt.railpadding[h]=0;c.append(g);c.width=Math.max(parseFloat(a.opt.cursorwidth),g.outerWidth());c.css({width:c.width+"px",zIndex:a.zindex,background:a.opt.background,cursor:"default"});c.visibility=!0;c.scrollable=!0;c.align="left"==a.opt.railalign?0:1;a.rail=c;g=a.rail.drag=!1;!a.opt.boxzoom||a.ispage||e.isieold||(g=document.createElement("div"),a.bind(g,"click",a.doZoom),a.bind(g,"mouseenter",function(){a.zoom.css("opacity",
|
||||
a.opt.cursoropacitymax)}),a.bind(g,"mouseleave",function(){a.zoom.css("opacity",a.opt.cursoropacitymin)}),a.zoom=f(g),a.zoom.css({cursor:"pointer","z-index":a.zindex,backgroundImage:"url("+a.opt.scriptpath+"zoomico.png)",height:18,width:18,backgroundPosition:"0px 0px"}),a.opt.dblclickzoom&&a.bind(a.win,"dblclick",a.doZoom),e.cantouch&&a.opt.gesturezoom&&(a.ongesturezoom=function(b){1.5<b.scale&&a.doZoomIn(b);.8>b.scale&&a.doZoomOut(b);return a.cancelEvent(b)},a.bind(a.win,"gestureend",a.ongesturezoom)));
|
||||
a.railh=!1;var l;a.opt.horizrailenabled&&(a.css(b,{"overflow-x":"hidden"}),g=f(document.createElement("div")),g.css({position:"absolute",top:0,height:a.opt.cursorwidth,width:"0px","background-color":a.opt.cursorcolor,border:a.opt.cursorborder,"background-clip":"padding-box","-webkit-border-radius":a.opt.cursorborderradius,"-moz-border-radius":a.opt.cursorborderradius,"border-radius":a.opt.cursorborderradius}),e.isieold&&g.css({overflow:"hidden"}),g.wborder=parseFloat(g.outerWidth()-g.innerWidth()),
|
||||
g.addClass("nicescroll-cursors"),a.cursorh=g,l=f(document.createElement("div")),l.attr("id",a.id+"-hr"),l.addClass("nicescroll-rails nicescroll-rails-hr"),l.height=Math.max(parseFloat(a.opt.cursorwidth),g.outerHeight()),l.css({height:l.height+"px",zIndex:a.zindex,background:a.opt.background}),l.append(g),l.visibility=!0,l.scrollable=!0,l.align="top"==a.opt.railvalign?0:1,a.railh=l,a.railh.drag=!1);a.ispage?(c.css({position:"fixed",top:"0px",height:"100%"}),c.align?c.css({right:"0px"}):c.css({left:"0px"}),
|
||||
a.body.append(c),a.railh&&(l.css({position:"fixed",left:"0px",width:"100%"}),l.align?l.css({bottom:"0px"}):l.css({top:"0px"}),a.body.append(l))):(a.ishwscroll?("static"==a.win.css("position")&&a.css(a.win,{position:"relative"}),b="HTML"==a.win[0].nodeName?a.body:a.win,f(b).scrollTop(0).scrollLeft(0),a.zoom&&(a.zoom.css({position:"absolute",top:1,right:0,"margin-right":c.width+4}),b.append(a.zoom)),c.css({position:"absolute",top:0}),c.align?c.css({right:0}):c.css({left:0}),b.append(c),l&&(l.css({position:"absolute",
|
||||
left:0,bottom:0}),l.align?l.css({bottom:0}):l.css({top:0}),b.append(l))):(a.isfixed="fixed"==a.win.css("position"),b=a.isfixed?"fixed":"absolute",a.isfixed||(a.viewport=a.getViewport(a.win[0])),a.viewport&&(a.body=a.viewport,0==/fixed|absolute/.test(a.viewport.css("position"))&&a.css(a.viewport,{position:"relative"})),c.css({position:b}),a.zoom&&a.zoom.css({position:b}),a.updateScrollBar(),a.body.append(c),a.zoom&&a.body.append(a.zoom),a.railh&&(l.css({position:b}),a.body.append(l))),e.isios&&a.css(a.win,
|
||||
{"-webkit-tap-highlight-color":"rgba(0,0,0,0)","-webkit-touch-callout":"none"}),e.isie&&a.opt.disableoutline&&a.win.attr("hideFocus","true"),e.iswebkit&&a.opt.disableoutline&&a.win.css({outline:"none"}));!1===a.opt.autohidemode?(a.autohidedom=!1,a.rail.css({opacity:a.opt.cursoropacitymax}),a.railh&&a.railh.css({opacity:a.opt.cursoropacitymax})):!0===a.opt.autohidemode||"leave"===a.opt.autohidemode?(a.autohidedom=f().add(a.rail),e.isie8&&(a.autohidedom=a.autohidedom.add(a.cursor)),a.railh&&(a.autohidedom=
|
||||
a.autohidedom.add(a.railh)),a.railh&&e.isie8&&(a.autohidedom=a.autohidedom.add(a.cursorh))):"scroll"==a.opt.autohidemode?(a.autohidedom=f().add(a.rail),a.railh&&(a.autohidedom=a.autohidedom.add(a.railh))):"cursor"==a.opt.autohidemode?(a.autohidedom=f().add(a.cursor),a.railh&&(a.autohidedom=a.autohidedom.add(a.cursorh))):"hidden"==a.opt.autohidemode&&(a.autohidedom=!1,a.hide(),a.railslocked=!1);if(e.isie9mobile)a.scrollmom=new L(a),a.onmangotouch=function(){var b=a.getScrollTop(),c=a.getScrollLeft();
|
||||
if(b==a.scrollmom.lastscrolly&&c==a.scrollmom.lastscrollx)return!0;var g=b-a.mangotouch.sy,e=c-a.mangotouch.sx;if(0!=Math.round(Math.sqrt(Math.pow(e,2)+Math.pow(g,2)))){var d=0>g?-1:1,f=0>e?-1:1,q=+new Date;a.mangotouch.lazy&&clearTimeout(a.mangotouch.lazy);80<q-a.mangotouch.tm||a.mangotouch.dry!=d||a.mangotouch.drx!=f?(a.scrollmom.stop(),a.scrollmom.reset(c,b),a.mangotouch.sy=b,a.mangotouch.ly=b,a.mangotouch.sx=c,a.mangotouch.lx=c,a.mangotouch.dry=d,a.mangotouch.drx=f,a.mangotouch.tm=q):(a.scrollmom.stop(),
|
||||
a.scrollmom.update(a.mangotouch.sx-e,a.mangotouch.sy-g),a.mangotouch.tm=q,g=Math.max(Math.abs(a.mangotouch.ly-b),Math.abs(a.mangotouch.lx-c)),a.mangotouch.ly=b,a.mangotouch.lx=c,2<g&&(a.mangotouch.lazy=setTimeout(function(){a.mangotouch.lazy=!1;a.mangotouch.dry=0;a.mangotouch.drx=0;a.mangotouch.tm=0;a.scrollmom.doMomentum(30)},100)))}},c=a.getScrollTop(),l=a.getScrollLeft(),a.mangotouch={sy:c,ly:c,dry:0,sx:l,lx:l,drx:0,lazy:!1,tm:0},a.bind(a.docscroll,"scroll",a.onmangotouch);else{if(e.cantouch||
|
||||
a.istouchcapable||a.opt.touchbehavior||e.hasmstouch){a.scrollmom=new L(a);a.ontouchstart=function(b){if(b.pointerType&&2!=b.pointerType&&"touch"!=b.pointerType)return!1;a.hasmoving=!1;if(!a.railslocked){var c;if(e.hasmstouch)for(c=b.target?b.target:!1;c;){var g=f(c).getNiceScroll();if(0<g.length&&g[0].me==a.me)break;if(0<g.length)return!1;if("DIV"==c.nodeName&&c.id==a.id)break;c=c.parentNode?c.parentNode:!1}a.cancelScroll();if((c=a.getTarget(b))&&/INPUT/i.test(c.nodeName)&&/range/i.test(c.type))return a.stopPropagation(b);
|
||||
!("clientX"in b)&&"changedTouches"in b&&(b.clientX=b.changedTouches[0].clientX,b.clientY=b.changedTouches[0].clientY);a.forcescreen&&(g=b,b={original:b.original?b.original:b},b.clientX=g.screenX,b.clientY=g.screenY);a.rail.drag={x:b.clientX,y:b.clientY,sx:a.scroll.x,sy:a.scroll.y,st:a.getScrollTop(),sl:a.getScrollLeft(),pt:2,dl:!1};if(a.ispage||!a.opt.directionlockdeadzone)a.rail.drag.dl="f";else{var g=f(window).width(),d=f(window).height(),q=Math.max(document.body.scrollWidth,document.documentElement.scrollWidth),
|
||||
h=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight),d=Math.max(0,h-d),g=Math.max(0,q-g);a.rail.drag.ck=!a.rail.scrollable&&a.railh.scrollable?0<d?"v":!1:a.rail.scrollable&&!a.railh.scrollable?0<g?"h":!1:!1;a.rail.drag.ck||(a.rail.drag.dl="f")}a.opt.touchbehavior&&a.isiframe&&e.isie&&(g=a.win.position(),a.rail.drag.x+=g.left,a.rail.drag.y+=g.top);a.hasmoving=!1;a.lastmouseup=!1;a.scrollmom.reset(b.clientX,b.clientY);if(!e.cantouch&&!this.istouchcapable&&!b.pointerType){if(!c||
|
||||
!/INPUT|SELECT|TEXTAREA/i.test(c.nodeName))return!a.ispage&&e.hasmousecapture&&c.setCapture(),a.opt.touchbehavior?(c.onclick&&!c._onclick&&(c._onclick=c.onclick,c.onclick=function(b){if(a.hasmoving)return!1;c._onclick.call(this,b)}),a.cancelEvent(b)):a.stopPropagation(b);/SUBMIT|CANCEL|BUTTON/i.test(f(c).attr("type"))&&(pc={tg:c,click:!1},a.preventclick=pc)}}};a.ontouchend=function(b){if(!a.rail.drag)return!0;if(2==a.rail.drag.pt){if(b.pointerType&&2!=b.pointerType&&"touch"!=b.pointerType)return!1;
|
||||
a.scrollmom.doMomentum();a.rail.drag=!1;if(a.hasmoving&&(a.lastmouseup=!0,a.hideCursor(),e.hasmousecapture&&document.releaseCapture(),!e.cantouch))return a.cancelEvent(b)}else if(1==a.rail.drag.pt)return a.onmouseup(b)};var n=a.opt.touchbehavior&&a.isiframe&&!e.hasmousecapture;a.ontouchmove=function(b,c){if(!a.rail.drag||b.targetTouches&&a.opt.preventmultitouchscrolling&&1<b.targetTouches.length||b.pointerType&&2!=b.pointerType&&"touch"!=b.pointerType)return!1;if(2==a.rail.drag.pt){if(e.cantouch&&
|
||||
e.isios&&"undefined"==typeof b.original)return!0;a.hasmoving=!0;a.preventclick&&!a.preventclick.click&&(a.preventclick.click=a.preventclick.tg.onclick||!1,a.preventclick.tg.onclick=a.onpreventclick);b=f.extend({original:b},b);"changedTouches"in b&&(b.clientX=b.changedTouches[0].clientX,b.clientY=b.changedTouches[0].clientY);if(a.forcescreen){var g=b;b={original:b.original?b.original:b};b.clientX=g.screenX;b.clientY=g.screenY}var d,g=d=0;n&&!c&&(d=a.win.position(),g=-d.left,d=-d.top);var q=b.clientY+
|
||||
d;d=q-a.rail.drag.y;var h=b.clientX+g,u=h-a.rail.drag.x,k=a.rail.drag.st-d;a.ishwscroll&&a.opt.bouncescroll?0>k?k=Math.round(k/2):k>a.page.maxh&&(k=a.page.maxh+Math.round((k-a.page.maxh)/2)):(0>k&&(q=k=0),k>a.page.maxh&&(k=a.page.maxh,q=0));var l;a.railh&&a.railh.scrollable&&(l=a.isrtlmode?u-a.rail.drag.sl:a.rail.drag.sl-u,a.ishwscroll&&a.opt.bouncescroll?0>l?l=Math.round(l/2):l>a.page.maxw&&(l=a.page.maxw+Math.round((l-a.page.maxw)/2)):(0>l&&(h=l=0),l>a.page.maxw&&(l=a.page.maxw,h=0)));g=!1;if(a.rail.drag.dl)g=
|
||||
!0,"v"==a.rail.drag.dl?l=a.rail.drag.sl:"h"==a.rail.drag.dl&&(k=a.rail.drag.st);else{d=Math.abs(d);var u=Math.abs(u),z=a.opt.directionlockdeadzone;if("v"==a.rail.drag.ck){if(d>z&&u<=.3*d)return a.rail.drag=!1,!0;u>z&&(a.rail.drag.dl="f",f("body").scrollTop(f("body").scrollTop()))}else if("h"==a.rail.drag.ck){if(u>z&&d<=.3*u)return a.rail.drag=!1,!0;d>z&&(a.rail.drag.dl="f",f("body").scrollLeft(f("body").scrollLeft()))}}a.synched("touchmove",function(){a.rail.drag&&2==a.rail.drag.pt&&(a.prepareTransition&&
|
||||
a.prepareTransition(0),a.rail.scrollable&&a.setScrollTop(k),a.scrollmom.update(h,q),a.railh&&a.railh.scrollable?(a.setScrollLeft(l),a.showCursor(k,l)):a.showCursor(k),e.isie10&&document.selection.clear())});e.ischrome&&a.istouchcapable&&(g=!1);if(g)return a.cancelEvent(b)}else if(1==a.rail.drag.pt)return a.onmousemove(b)}}a.onmousedown=function(b,c){if(!a.rail.drag||1==a.rail.drag.pt){if(a.railslocked)return a.cancelEvent(b);a.cancelScroll();a.rail.drag={x:b.clientX,y:b.clientY,sx:a.scroll.x,sy:a.scroll.y,
|
||||
pt:1,hr:!!c};var g=a.getTarget(b);!a.ispage&&e.hasmousecapture&&g.setCapture();a.isiframe&&!e.hasmousecapture&&(a.saved.csspointerevents=a.doc.css("pointer-events"),a.css(a.doc,{"pointer-events":"none"}));a.hasmoving=!1;return a.cancelEvent(b)}};a.onmouseup=function(b){if(a.rail.drag){if(1!=a.rail.drag.pt)return!0;e.hasmousecapture&&document.releaseCapture();a.isiframe&&!e.hasmousecapture&&a.doc.css("pointer-events",a.saved.csspointerevents);a.rail.drag=!1;a.hasmoving&&a.triggerScrollEnd();return a.cancelEvent(b)}};
|
||||
a.onmousemove=function(b){if(a.rail.drag&&1==a.rail.drag.pt){if(e.ischrome&&0==b.which)return a.onmouseup(b);a.cursorfreezed=!0;a.hasmoving=!0;if(a.rail.drag.hr){a.scroll.x=a.rail.drag.sx+(b.clientX-a.rail.drag.x);0>a.scroll.x&&(a.scroll.x=0);var c=a.scrollvaluemaxw;a.scroll.x>c&&(a.scroll.x=c)}else a.scroll.y=a.rail.drag.sy+(b.clientY-a.rail.drag.y),0>a.scroll.y&&(a.scroll.y=0),c=a.scrollvaluemax,a.scroll.y>c&&(a.scroll.y=c);a.synched("mousemove",function(){a.rail.drag&&1==a.rail.drag.pt&&(a.showCursor(),
|
||||
a.rail.drag.hr?a.hasreversehr?a.doScrollLeft(a.scrollvaluemaxw-Math.round(a.scroll.x*a.scrollratio.x),a.opt.cursordragspeed):a.doScrollLeft(Math.round(a.scroll.x*a.scrollratio.x),a.opt.cursordragspeed):a.doScrollTop(Math.round(a.scroll.y*a.scrollratio.y),a.opt.cursordragspeed))});return a.cancelEvent(b)}};if(e.cantouch||a.opt.touchbehavior)a.onpreventclick=function(b){if(a.preventclick)return a.preventclick.tg.onclick=a.preventclick.click,a.preventclick=!1,a.cancelEvent(b)},a.bind(a.win,"mousedown",
|
||||
a.ontouchstart),a.onclick=e.isios?!1:function(b){return a.lastmouseup?(a.lastmouseup=!1,a.cancelEvent(b)):!0},a.opt.grabcursorenabled&&e.cursorgrabvalue&&(a.css(a.ispage?a.doc:a.win,{cursor:e.cursorgrabvalue}),a.css(a.rail,{cursor:e.cursorgrabvalue}));else{var p=function(b){if(a.selectiondrag){if(b){var c=a.win.outerHeight();b=b.pageY-a.selectiondrag.top;0<b&&b<c&&(b=0);b>=c&&(b-=c);a.selectiondrag.df=b}0!=a.selectiondrag.df&&(a.doScrollBy(2*-Math.floor(a.selectiondrag.df/6)),a.debounced("doselectionscroll",
|
||||
function(){p()},50))}};a.hasTextSelected="getSelection"in document?function(){return 0<document.getSelection().rangeCount}:"selection"in document?function(){return"None"!=document.selection.type}:function(){return!1};a.onselectionstart=function(b){a.ispage||(a.selectiondrag=a.win.offset())};a.onselectionend=function(b){a.selectiondrag=!1};a.onselectiondrag=function(b){a.selectiondrag&&a.hasTextSelected()&&a.debounced("selectionscroll",function(){p(b)},250)}}e.hasw3ctouch?(a.css(a.rail,{"touch-action":"none"}),
|
||||
a.css(a.cursor,{"touch-action":"none"}),a.bind(a.win,"pointerdown",a.ontouchstart),a.bind(document,"pointerup",a.ontouchend),a.bind(document,"pointermove",a.ontouchmove)):e.hasmstouch?(a.css(a.rail,{"-ms-touch-action":"none"}),a.css(a.cursor,{"-ms-touch-action":"none"}),a.bind(a.win,"MSPointerDown",a.ontouchstart),a.bind(document,"MSPointerUp",a.ontouchend),a.bind(document,"MSPointerMove",a.ontouchmove),a.bind(a.cursor,"MSGestureHold",function(a){a.preventDefault()}),a.bind(a.cursor,"contextmenu",
|
||||
function(a){a.preventDefault()})):this.istouchcapable&&(a.bind(a.win,"touchstart",a.ontouchstart),a.bind(document,"touchend",a.ontouchend),a.bind(document,"touchcancel",a.ontouchend),a.bind(document,"touchmove",a.ontouchmove));if(a.opt.cursordragontouch||!e.cantouch&&!a.opt.touchbehavior)a.rail.css({cursor:"default"}),a.railh&&a.railh.css({cursor:"default"}),a.jqbind(a.rail,"mouseenter",function(){if(!a.ispage&&!a.win.is(":visible"))return!1;a.canshowonmouseevent&&a.showCursor();a.rail.active=!0}),
|
||||
a.jqbind(a.rail,"mouseleave",function(){a.rail.active=!1;a.rail.drag||a.hideCursor()}),a.opt.sensitiverail&&(a.bind(a.rail,"click",function(b){a.doRailClick(b,!1,!1)}),a.bind(a.rail,"dblclick",function(b){a.doRailClick(b,!0,!1)}),a.bind(a.cursor,"click",function(b){a.cancelEvent(b)}),a.bind(a.cursor,"dblclick",function(b){a.cancelEvent(b)})),a.railh&&(a.jqbind(a.railh,"mouseenter",function(){if(!a.ispage&&!a.win.is(":visible"))return!1;a.canshowonmouseevent&&a.showCursor();a.rail.active=!0}),a.jqbind(a.railh,
|
||||
"mouseleave",function(){a.rail.active=!1;a.rail.drag||a.hideCursor()}),a.opt.sensitiverail&&(a.bind(a.railh,"click",function(b){a.doRailClick(b,!1,!0)}),a.bind(a.railh,"dblclick",function(b){a.doRailClick(b,!0,!0)}),a.bind(a.cursorh,"click",function(b){a.cancelEvent(b)}),a.bind(a.cursorh,"dblclick",function(b){a.cancelEvent(b)})));e.cantouch||a.opt.touchbehavior?(a.bind(e.hasmousecapture?a.win:document,"mouseup",a.ontouchend),a.bind(document,"mousemove",a.ontouchmove),a.onclick&&a.bind(document,"click",
|
||||
a.onclick),a.opt.cursordragontouch&&(a.bind(a.cursor,"mousedown",a.onmousedown),a.bind(a.cursor,"mouseup",a.onmouseup),a.cursorh&&a.bind(a.cursorh,"mousedown",function(b){a.onmousedown(b,!0)}),a.cursorh&&a.bind(a.cursorh,"mouseup",a.onmouseup))):(a.bind(e.hasmousecapture?a.win:document,"mouseup",a.onmouseup),a.bind(document,"mousemove",a.onmousemove),a.onclick&&a.bind(document,"click",a.onclick),a.bind(a.cursor,"mousedown",a.onmousedown),a.bind(a.cursor,"mouseup",a.onmouseup),a.railh&&(a.bind(a.cursorh,
|
||||
"mousedown",function(b){a.onmousedown(b,!0)}),a.bind(a.cursorh,"mouseup",a.onmouseup)),!a.ispage&&a.opt.enablescrollonselection&&(a.bind(a.win[0],"mousedown",a.onselectionstart),a.bind(document,"mouseup",a.onselectionend),a.bind(a.cursor,"mouseup",a.onselectionend),a.cursorh&&a.bind(a.cursorh,"mouseup",a.onselectionend),a.bind(document,"mousemove",a.onselectiondrag)),a.zoom&&(a.jqbind(a.zoom,"mouseenter",function(){a.canshowonmouseevent&&a.showCursor();a.rail.active=!0}),a.jqbind(a.zoom,"mouseleave",
|
||||
function(){a.rail.active=!1;a.rail.drag||a.hideCursor()})));a.opt.enablemousewheel&&(a.isiframe||a.bind(e.isie&&a.ispage?document:a.win,"mousewheel",a.onmousewheel),a.bind(a.rail,"mousewheel",a.onmousewheel),a.railh&&a.bind(a.railh,"mousewheel",a.onmousewheelhr));a.ispage||e.cantouch||/HTML|^BODY/.test(a.win[0].nodeName)||(a.win.attr("tabindex")||a.win.attr({tabindex:N++}),a.jqbind(a.win,"focus",function(b){y=a.getTarget(b).id||!0;a.hasfocus=!0;a.canshowonmouseevent&&a.noticeCursor()}),a.jqbind(a.win,
|
||||
"blur",function(b){y=!1;a.hasfocus=!1}),a.jqbind(a.win,"mouseenter",function(b){D=a.getTarget(b).id||!0;a.hasmousefocus=!0;a.canshowonmouseevent&&a.noticeCursor()}),a.jqbind(a.win,"mouseleave",function(){D=!1;a.hasmousefocus=!1;a.rail.drag||a.hideCursor()}))}a.onkeypress=function(b){if(a.railslocked&&0==a.page.maxh)return!0;b=b?b:window.e;var c=a.getTarget(b);if(c&&/INPUT|TEXTAREA|SELECT|OPTION/.test(c.nodeName)&&(!c.getAttribute("type")&&!c.type||!/submit|button|cancel/i.tp)||f(c).attr("contenteditable"))return!0;
|
||||
if(a.hasfocus||a.hasmousefocus&&!y||a.ispage&&!y&&!D){c=b.keyCode;if(a.railslocked&&27!=c)return a.cancelEvent(b);var g=b.ctrlKey||!1,d=b.shiftKey||!1,e=!1;switch(c){case 38:case 63233:a.doScrollBy(72);e=!0;break;case 40:case 63235:a.doScrollBy(-72);e=!0;break;case 37:case 63232:a.railh&&(g?a.doScrollLeft(0):a.doScrollLeftBy(72),e=!0);break;case 39:case 63234:a.railh&&(g?a.doScrollLeft(a.page.maxw):a.doScrollLeftBy(-72),e=!0);break;case 33:case 63276:a.doScrollBy(a.view.h);e=!0;break;case 34:case 63277:a.doScrollBy(-a.view.h);
|
||||
e=!0;break;case 36:case 63273:a.railh&&g?a.doScrollPos(0,0):a.doScrollTo(0);e=!0;break;case 35:case 63275:a.railh&&g?a.doScrollPos(a.page.maxw,a.page.maxh):a.doScrollTo(a.page.maxh);e=!0;break;case 32:a.opt.spacebarenabled&&(d?a.doScrollBy(a.view.h):a.doScrollBy(-a.view.h),e=!0);break;case 27:a.zoomactive&&(a.doZoom(),e=!0)}if(e)return a.cancelEvent(b)}};a.opt.enablekeyboard&&a.bind(document,e.isopera&&!e.isopera12?"keypress":"keydown",a.onkeypress);a.bind(document,"keydown",function(b){b.ctrlKey&&
|
||||
(a.wheelprevented=!0)});a.bind(document,"keyup",function(b){b.ctrlKey||(a.wheelprevented=!1)});a.bind(window,"blur",function(b){a.wheelprevented=!1});a.bind(window,"resize",a.lazyResize);a.bind(window,"orientationchange",a.lazyResize);a.bind(window,"load",a.lazyResize);if(e.ischrome&&!a.ispage&&!a.haswrapper){var r=a.win.attr("style"),c=parseFloat(a.win.css("width"))+1;a.win.css("width",c);a.synched("chromefix",function(){a.win.attr("style",r)})}a.onAttributeChange=function(b){a.lazyResize(a.isieold?
|
||||
250:30)};!1!==v&&(a.observerbody=new v(function(b){b.forEach(function(b){if("attributes"==b.type)return f("body").hasClass("modal-open")?a.hide():a.show()});if(document.body.scrollHeight!=a.page.maxh)return a.lazyResize(30)}),a.observerbody.observe(document.body,{childList:!0,subtree:!0,characterData:!1,attributes:!0,attributeFilter:["class"]}));a.ispage||a.haswrapper||(!1!==v?(a.observer=new v(function(b){b.forEach(a.onAttributeChange)}),a.observer.observe(a.win[0],{childList:!0,characterData:!1,
|
||||
attributes:!0,subtree:!1}),a.observerremover=new v(function(b){b.forEach(function(b){if(0<b.removedNodes.length)for(var c in b.removedNodes)if(a&&b.removedNodes[c]==a.win[0])return a.remove()})}),a.observerremover.observe(a.win[0].parentNode,{childList:!0,characterData:!1,attributes:!1,subtree:!1})):(a.bind(a.win,e.isie&&!e.isie9?"propertychange":"DOMAttrModified",a.onAttributeChange),e.isie9&&a.win[0].attachEvent("onpropertychange",a.onAttributeChange),a.bind(a.win,"DOMNodeRemoved",function(b){b.target==
|
||||
a.win[0]&&a.remove()})));!a.ispage&&a.opt.boxzoom&&a.bind(window,"resize",a.resizeZoom);a.istextarea&&a.bind(a.win,"mouseup",a.lazyResize);a.lazyResize(30)}if("IFRAME"==this.doc[0].nodeName){var M=function(){a.iframexd=!1;var b;try{b="contentDocument"in this?this.contentDocument:this.contentWindow.document}catch(c){a.iframexd=!0,b=!1}if(a.iframexd)return"console"in window&&console.log("NiceScroll error: policy restriced iframe"),!0;a.forcescreen=!0;a.isiframe&&(a.iframe={doc:f(b),html:a.doc.contents().find("html")[0],
|
||||
body:a.doc.contents().find("body")[0]},a.getContentSize=function(){return{w:Math.max(a.iframe.html.scrollWidth,a.iframe.body.scrollWidth),h:Math.max(a.iframe.html.scrollHeight,a.iframe.body.scrollHeight)}},a.docscroll=f(a.iframe.body));if(!e.isios&&a.opt.iframeautoresize&&!a.isiframe){a.win.scrollTop(0);a.doc.height("");var g=Math.max(b.getElementsByTagName("html")[0].scrollHeight,b.body.scrollHeight);a.doc.height(g)}a.lazyResize(30);e.isie7&&a.css(f(a.iframe.html),{"overflow-y":"hidden"});a.css(f(a.iframe.body),
|
||||
{"overflow-y":"hidden"});e.isios&&a.haswrapper&&a.css(f(b.body),{"-webkit-transform":"translate3d(0,0,0)"});"contentWindow"in this?a.bind(this.contentWindow,"scroll",a.onscroll):a.bind(b,"scroll",a.onscroll);a.opt.enablemousewheel&&a.bind(b,"mousewheel",a.onmousewheel);a.opt.enablekeyboard&&a.bind(b,e.isopera?"keypress":"keydown",a.onkeypress);if(e.cantouch||a.opt.touchbehavior)a.bind(b,"mousedown",a.ontouchstart),a.bind(b,"mousemove",function(b){return a.ontouchmove(b,!0)}),a.opt.grabcursorenabled&&
|
||||
e.cursorgrabvalue&&a.css(f(b.body),{cursor:e.cursorgrabvalue});a.bind(b,"mouseup",a.ontouchend);a.zoom&&(a.opt.dblclickzoom&&a.bind(b,"dblclick",a.doZoom),a.ongesturezoom&&a.bind(b,"gestureend",a.ongesturezoom))};this.doc[0].readyState&&"complete"==this.doc[0].readyState&&setTimeout(function(){M.call(a.doc[0],!1)},500);a.bind(this.doc,"load",M)}};this.showCursor=function(b,c){a.cursortimeout&&(clearTimeout(a.cursortimeout),a.cursortimeout=0);if(a.rail){a.autohidedom&&(a.autohidedom.stop().css({opacity:a.opt.cursoropacitymax}),
|
||||
a.cursoractive=!0);a.rail.drag&&1==a.rail.drag.pt||("undefined"!=typeof b&&!1!==b&&(a.scroll.y=Math.round(1*b/a.scrollratio.y)),"undefined"!=typeof c&&(a.scroll.x=Math.round(1*c/a.scrollratio.x)));a.cursor.css({height:a.cursorheight,top:a.scroll.y});if(a.cursorh){var d=a.hasreversehr?a.scrollvaluemaxw-a.scroll.x:a.scroll.x;!a.rail.align&&a.rail.visibility?a.cursorh.css({width:a.cursorwidth,left:d+a.rail.width}):a.cursorh.css({width:a.cursorwidth,left:d});a.cursoractive=!0}a.zoom&&a.zoom.stop().css({opacity:a.opt.cursoropacitymax})}};
|
||||
this.hideCursor=function(b){a.cursortimeout||!a.rail||!a.autohidedom||a.hasmousefocus&&"leave"==a.opt.autohidemode||(a.cursortimeout=setTimeout(function(){a.rail.active&&a.showonmouseevent||(a.autohidedom.stop().animate({opacity:a.opt.cursoropacitymin}),a.zoom&&a.zoom.stop().animate({opacity:a.opt.cursoropacitymin}),a.cursoractive=!1);a.cursortimeout=0},b||a.opt.hidecursordelay))};this.noticeCursor=function(b,c,d){a.showCursor(c,d);a.rail.active||a.hideCursor(b)};this.getContentSize=a.ispage?function(){return{w:Math.max(document.body.scrollWidth,
|
||||
document.documentElement.scrollWidth),h:Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}}:a.haswrapper?function(){return{w:a.doc.outerWidth()+parseInt(a.win.css("paddingLeft"))+parseInt(a.win.css("paddingRight")),h:a.doc.outerHeight()+parseInt(a.win.css("paddingTop"))+parseInt(a.win.css("paddingBottom"))}}:function(){return{w:a.docscroll[0].scrollWidth,h:a.docscroll[0].scrollHeight}};this.onResize=function(b,c){if(!a||!a.win)return!1;if(!a.haswrapper&&!a.ispage){if("none"==
|
||||
a.win.css("display"))return a.visibility&&a.hideRail().hideRailHr(),!1;a.hidden||a.visibility||a.showRail().showRailHr()}var d=a.page.maxh,e=a.page.maxw,f=a.view.h,h=a.view.w;a.view={w:a.ispage?a.win.width():parseInt(a.win[0].clientWidth),h:a.ispage?a.win.height():parseInt(a.win[0].clientHeight)};a.page=c?c:a.getContentSize();a.page.maxh=Math.max(0,a.page.h-a.view.h);a.page.maxw=Math.max(0,a.page.w-a.view.w);if(a.page.maxh==d&&a.page.maxw==e&&a.view.w==h&&a.view.h==f){if(a.ispage)return a;d=a.win.offset();
|
||||
if(a.lastposition&&(e=a.lastposition,e.top==d.top&&e.left==d.left))return a;a.lastposition=d}0==a.page.maxh?(a.hideRail(),a.scrollvaluemax=0,a.scroll.y=0,a.scrollratio.y=0,a.cursorheight=0,a.setScrollTop(0),a.rail.scrollable=!1):(a.page.maxh-=a.opt.railpadding.top+a.opt.railpadding.bottom,a.rail.scrollable=!0);0==a.page.maxw?(a.hideRailHr(),a.scrollvaluemaxw=0,a.scroll.x=0,a.scrollratio.x=0,a.cursorwidth=0,a.setScrollLeft(0),a.railh.scrollable=!1):(a.page.maxw-=a.opt.railpadding.left+a.opt.railpadding.right,
|
||||
a.railh.scrollable=!0);a.railslocked=a.locked||0==a.page.maxh&&0==a.page.maxw;if(a.railslocked)return a.ispage||a.updateScrollBar(a.view),!1;a.hidden||a.visibility?a.hidden||a.railh.visibility||a.showRailHr():a.showRail().showRailHr();a.istextarea&&a.win.css("resize")&&"none"!=a.win.css("resize")&&(a.view.h-=20);a.cursorheight=Math.min(a.view.h,Math.round(a.view.h/a.page.h*a.view.h));a.cursorheight=a.opt.cursorfixedheight?a.opt.cursorfixedheight:Math.max(a.opt.cursorminheight,a.cursorheight);a.cursorwidth=
|
||||
Math.min(a.view.w,Math.round(a.view.w/a.page.w*a.view.w));a.cursorwidth=a.opt.cursorfixedheight?a.opt.cursorfixedheight:Math.max(a.opt.cursorminheight,a.cursorwidth);a.scrollvaluemax=a.view.h-a.cursorheight-a.cursor.hborder-(a.opt.railpadding.top+a.opt.railpadding.bottom);a.railh&&(a.railh.width=0<a.page.maxh?a.view.w-a.rail.width:a.view.w,a.scrollvaluemaxw=a.railh.width-a.cursorwidth-a.cursorh.wborder-(a.opt.railpadding.left+a.opt.railpadding.right));a.ispage||a.updateScrollBar(a.view);a.scrollratio=
|
||||
{x:a.page.maxw/a.scrollvaluemaxw,y:a.page.maxh/a.scrollvaluemax};a.getScrollTop()>a.page.maxh?a.doScrollTop(a.page.maxh):(a.scroll.y=Math.round(a.getScrollTop()*(1/a.scrollratio.y)),a.scroll.x=Math.round(a.getScrollLeft()*(1/a.scrollratio.x)),a.cursoractive&&a.noticeCursor());a.scroll.y&&0==a.getScrollTop()&&a.doScrollTo(Math.floor(a.scroll.y*a.scrollratio.y));return a};this.resize=a.onResize;this.lazyResize=function(b){b=isNaN(b)?30:b;a.debounced("resize",a.resize,b);return a};this.jqbind=function(b,
|
||||
c,d){a.events.push({e:b,n:c,f:d,q:!0});f(b).bind(c,d)};this.bind=function(b,c,d,f){var h="jquery"in b?b[0]:b;"mousewheel"==c?window.addEventListener||"onwheel"in document?a._bind(h,"wheel",d,f||!1):(b="undefined"!=typeof document.onmousewheel?"mousewheel":"DOMMouseScroll",n(h,b,d,f||!1),"DOMMouseScroll"==b&&n(h,"MozMousePixelScroll",d,f||!1)):h.addEventListener?(e.cantouch&&/mouseup|mousedown|mousemove/.test(c)&&a._bind(h,"mousedown"==c?"touchstart":"mouseup"==c?"touchend":"touchmove",function(a){if(a.touches){if(2>
|
||||
a.touches.length){var b=a.touches.length?a.touches[0]:a;b.original=a;d.call(this,b)}}else a.changedTouches&&(b=a.changedTouches[0],b.original=a,d.call(this,b))},f||!1),a._bind(h,c,d,f||!1),e.cantouch&&"mouseup"==c&&a._bind(h,"touchcancel",d,f||!1)):a._bind(h,c,function(b){(b=b||window.event||!1)&&b.srcElement&&(b.target=b.srcElement);"pageY"in b||(b.pageX=b.clientX+document.documentElement.scrollLeft,b.pageY=b.clientY+document.documentElement.scrollTop);return!1===d.call(h,b)||!1===f?a.cancelEvent(b):
|
||||
!0})};e.haseventlistener?(this._bind=function(b,c,d,e){a.events.push({e:b,n:c,f:d,b:e,q:!1});b.addEventListener(c,d,e||!1)},this.cancelEvent=function(a){if(!a)return!1;a=a.original?a.original:a;a.preventDefault();a.stopPropagation();a.preventManipulation&&a.preventManipulation();return!1},this.stopPropagation=function(a){if(!a)return!1;a=a.original?a.original:a;a.stopPropagation();return!1},this._unbind=function(a,c,d,e){a.removeEventListener(c,d,e)}):(this._bind=function(b,c,d,e){a.events.push({e:b,
|
||||
n:c,f:d,b:e,q:!1});b.attachEvent?b.attachEvent("on"+c,d):b["on"+c]=d},this.cancelEvent=function(a){a=window.event||!1;if(!a)return!1;a.cancelBubble=!0;a.cancel=!0;return a.returnValue=!1},this.stopPropagation=function(a){a=window.event||!1;if(!a)return!1;a.cancelBubble=!0;return!1},this._unbind=function(a,c,d,e){a.detachEvent?a.detachEvent("on"+c,d):a["on"+c]=!1});this.unbindAll=function(){for(var b=0;b<a.events.length;b++){var c=a.events[b];c.q?c.e.unbind(c.n,c.f):a._unbind(c.e,c.n,c.f,c.b)}};this.showRail=
|
||||
function(){0==a.page.maxh||!a.ispage&&"none"==a.win.css("display")||(a.visibility=!0,a.rail.visibility=!0,a.rail.css("display","block"));return a};this.showRailHr=function(){if(!a.railh)return a;0==a.page.maxw||!a.ispage&&"none"==a.win.css("display")||(a.railh.visibility=!0,a.railh.css("display","block"));return a};this.hideRail=function(){a.visibility=!1;a.rail.visibility=!1;a.rail.css("display","none");return a};this.hideRailHr=function(){if(!a.railh)return a;a.railh.visibility=!1;a.railh.css("display",
|
||||
"none");return a};this.show=function(){a.hidden=!1;a.railslocked=!1;return a.showRail().showRailHr()};this.hide=function(){a.hidden=!0;a.railslocked=!0;return a.hideRail().hideRailHr()};this.toggle=function(){return a.hidden?a.show():a.hide()};this.remove=function(){a.stop();a.cursortimeout&&clearTimeout(a.cursortimeout);a.doZoomOut();a.unbindAll();e.isie9&&a.win[0].detachEvent("onpropertychange",a.onAttributeChange);!1!==a.observer&&a.observer.disconnect();!1!==a.observerremover&&a.observerremover.disconnect();
|
||||
!1!==a.observerbody&&a.observerbody.disconnect();a.events=null;a.cursor&&a.cursor.remove();a.cursorh&&a.cursorh.remove();a.rail&&a.rail.remove();a.railh&&a.railh.remove();a.zoom&&a.zoom.remove();for(var b=0;b<a.saved.css.length;b++){var c=a.saved.css[b];c[0].css(c[1],"undefined"==typeof c[2]?"":c[2])}a.saved=!1;a.me.data("__nicescroll","");var d=f.nicescroll;d.each(function(b){if(this&&this.id===a.id){delete d[b];for(var c=++b;c<d.length;c++,b++)d[b]=d[c];d.length--;d.length&&delete d[d.length]}});
|
||||
for(var h in a)a[h]=null,delete a[h];a=null};this.scrollstart=function(b){this.onscrollstart=b;return a};this.scrollend=function(b){this.onscrollend=b;return a};this.scrollcancel=function(b){this.onscrollcancel=b;return a};this.zoomin=function(b){this.onzoomin=b;return a};this.zoomout=function(b){this.onzoomout=b;return a};this.isScrollable=function(a){a=a.target?a.target:a;if("OPTION"==a.nodeName)return!0;for(;a&&1==a.nodeType&&!/^BODY|HTML/.test(a.nodeName);){var c=f(a),c=c.css("overflowY")||c.css("overflowX")||
|
||||
c.css("overflow")||"";if(/scroll|auto/.test(c))return a.clientHeight!=a.scrollHeight;a=a.parentNode?a.parentNode:!1}return!1};this.getViewport=function(a){for(a=a&&a.parentNode?a.parentNode:!1;a&&1==a.nodeType&&!/^BODY|HTML/.test(a.nodeName);){var c=f(a);if(/fixed|absolute/.test(c.css("position")))return c;var d=c.css("overflowY")||c.css("overflowX")||c.css("overflow")||"";if(/scroll|auto/.test(d)&&a.clientHeight!=a.scrollHeight||0<c.getNiceScroll().length)return c;a=a.parentNode?a.parentNode:!1}return!1};
|
||||
this.triggerScrollEnd=function(){if(a.onscrollend){var b=a.getScrollLeft(),c=a.getScrollTop();a.onscrollend.call(a,{type:"scrollend",current:{x:b,y:c},end:{x:b,y:c}})}};this.onmousewheel=function(b){if(!a.wheelprevented){if(a.railslocked)return a.debounced("checkunlock",a.resize,250),!0;if(a.rail.drag)return a.cancelEvent(b);"auto"==a.opt.oneaxismousemode&&0!=b.deltaX&&(a.opt.oneaxismousemode=!1);if(a.opt.oneaxismousemode&&0==b.deltaX&&!a.rail.scrollable)return a.railh&&a.railh.scrollable?a.onmousewheelhr(b):
|
||||
!0;var c=+new Date,d=!1;a.opt.preservenativescrolling&&a.checkarea+600<c&&(a.nativescrollingarea=a.isScrollable(b),d=!0);a.checkarea=c;if(a.nativescrollingarea)return!0;if(b=p(b,!1,d))a.checkarea=0;return b}};this.onmousewheelhr=function(b){if(!a.wheelprevented){if(a.railslocked||!a.railh.scrollable)return!0;if(a.rail.drag)return a.cancelEvent(b);var c=+new Date,d=!1;a.opt.preservenativescrolling&&a.checkarea+600<c&&(a.nativescrollingarea=a.isScrollable(b),d=!0);a.checkarea=c;return a.nativescrollingarea?
|
||||
!0:a.railslocked?a.cancelEvent(b):p(b,!0,d)}};this.stop=function(){a.cancelScroll();a.scrollmon&&a.scrollmon.stop();a.cursorfreezed=!1;a.scroll.y=Math.round(a.getScrollTop()*(1/a.scrollratio.y));a.noticeCursor();return a};this.getTransitionSpeed=function(b){var c=Math.round(10*a.opt.scrollspeed);b=Math.min(c,Math.round(b/20*a.opt.scrollspeed));return 20<b?b:0};a.opt.smoothscroll?a.ishwscroll&&e.hastransition&&a.opt.usetransition&&a.opt.smoothscroll?(this.prepareTransition=function(b,c){var d=c?20<
|
||||
b?b:0:a.getTransitionSpeed(b),f=d?e.prefixstyle+"transform "+d+"ms ease-out":"";a.lasttransitionstyle&&a.lasttransitionstyle==f||(a.lasttransitionstyle=f,a.doc.css(e.transitionstyle,f));return d},this.doScrollLeft=function(b,c){var d=a.scrollrunning?a.newscrolly:a.getScrollTop();a.doScrollPos(b,d,c)},this.doScrollTop=function(b,c){var d=a.scrollrunning?a.newscrollx:a.getScrollLeft();a.doScrollPos(d,b,c)},this.doScrollPos=function(b,c,d){var f=a.getScrollTop(),h=a.getScrollLeft();(0>(a.newscrolly-
|
||||
f)*(c-f)||0>(a.newscrollx-h)*(b-h))&&a.cancelScroll();0==a.opt.bouncescroll&&(0>c?c=0:c>a.page.maxh&&(c=a.page.maxh),0>b?b=0:b>a.page.maxw&&(b=a.page.maxw));if(a.scrollrunning&&b==a.newscrollx&&c==a.newscrolly)return!1;a.newscrolly=c;a.newscrollx=b;a.newscrollspeed=d||!1;if(a.timer)return!1;a.timer=setTimeout(function(){var d=a.getScrollTop(),f=a.getScrollLeft(),h,k;h=b-f;k=c-d;h=Math.round(Math.sqrt(Math.pow(h,2)+Math.pow(k,2)));h=a.newscrollspeed&&1<a.newscrollspeed?a.newscrollspeed:a.getTransitionSpeed(h);
|
||||
a.newscrollspeed&&1>=a.newscrollspeed&&(h*=a.newscrollspeed);a.prepareTransition(h,!0);a.timerscroll&&a.timerscroll.tm&&clearInterval(a.timerscroll.tm);0<h&&(!a.scrollrunning&&a.onscrollstart&&a.onscrollstart.call(a,{type:"scrollstart",current:{x:f,y:d},request:{x:b,y:c},end:{x:a.newscrollx,y:a.newscrolly},speed:h}),e.transitionend?a.scrollendtrapped||(a.scrollendtrapped=!0,a.bind(a.doc,e.transitionend,a.onScrollTransitionEnd,!1)):(a.scrollendtrapped&&clearTimeout(a.scrollendtrapped),a.scrollendtrapped=
|
||||
setTimeout(a.onScrollTransitionEnd,h)),a.timerscroll={bz:new A(d,a.newscrolly,h,0,0,.58,1),bh:new A(f,a.newscrollx,h,0,0,.58,1)},a.cursorfreezed||(a.timerscroll.tm=setInterval(function(){a.showCursor(a.getScrollTop(),a.getScrollLeft())},60)));a.synched("doScroll-set",function(){a.timer=0;a.scrollendtrapped&&(a.scrollrunning=!0);a.setScrollTop(a.newscrolly);a.setScrollLeft(a.newscrollx);if(!a.scrollendtrapped)a.onScrollTransitionEnd()})},50)},this.cancelScroll=function(){if(!a.scrollendtrapped)return!0;
|
||||
var b=a.getScrollTop(),c=a.getScrollLeft();a.scrollrunning=!1;e.transitionend||clearTimeout(e.transitionend);a.scrollendtrapped=!1;a._unbind(a.doc[0],e.transitionend,a.onScrollTransitionEnd);a.prepareTransition(0);a.setScrollTop(b);a.railh&&a.setScrollLeft(c);a.timerscroll&&a.timerscroll.tm&&clearInterval(a.timerscroll.tm);a.timerscroll=!1;a.cursorfreezed=!1;a.showCursor(b,c);return a},this.onScrollTransitionEnd=function(){a.scrollendtrapped&&a._unbind(a.doc[0],e.transitionend,a.onScrollTransitionEnd);
|
||||
a.scrollendtrapped=!1;a.prepareTransition(0);a.timerscroll&&a.timerscroll.tm&&clearInterval(a.timerscroll.tm);a.timerscroll=!1;var b=a.getScrollTop(),c=a.getScrollLeft();a.setScrollTop(b);a.railh&&a.setScrollLeft(c);a.noticeCursor(!1,b,c);a.cursorfreezed=!1;0>b?b=0:b>a.page.maxh&&(b=a.page.maxh);0>c?c=0:c>a.page.maxw&&(c=a.page.maxw);if(b!=a.newscrolly||c!=a.newscrollx)return a.doScrollPos(c,b,a.opt.snapbackspeed);a.onscrollend&&a.scrollrunning&&a.triggerScrollEnd();a.scrollrunning=!1}):(this.doScrollLeft=
|
||||
function(b,c){var d=a.scrollrunning?a.newscrolly:a.getScrollTop();a.doScrollPos(b,d,c)},this.doScrollTop=function(b,c){var d=a.scrollrunning?a.newscrollx:a.getScrollLeft();a.doScrollPos(d,b,c)},this.doScrollPos=function(b,c,d){function e(){if(a.cancelAnimationFrame)return!0;a.scrollrunning=!0;if(n=1-n)return a.timer=s(e)||1;var b=0,c,d,g=d=a.getScrollTop();if(a.dst.ay){g=a.bzscroll?a.dst.py+a.bzscroll.getNow()*a.dst.ay:a.newscrolly;c=g-d;if(0>c&&g<a.newscrolly||0<c&&g>a.newscrolly)g=a.newscrolly;
|
||||
a.setScrollTop(g);g==a.newscrolly&&(b=1)}else b=1;d=c=a.getScrollLeft();if(a.dst.ax){d=a.bzscroll?a.dst.px+a.bzscroll.getNow()*a.dst.ax:a.newscrollx;c=d-c;if(0>c&&d<a.newscrollx||0<c&&d>a.newscrollx)d=a.newscrollx;a.setScrollLeft(d);d==a.newscrollx&&(b+=1)}else b+=1;2==b?(a.timer=0,a.cursorfreezed=!1,a.bzscroll=!1,a.scrollrunning=!1,0>g?g=0:g>a.page.maxh&&(g=a.page.maxh),0>d?d=0:d>a.page.maxw&&(d=a.page.maxw),d!=a.newscrollx||g!=a.newscrolly?a.doScrollPos(d,g):a.onscrollend&&a.triggerScrollEnd()):
|
||||
a.timer=s(e)||1}c="undefined"==typeof c||!1===c?a.getScrollTop(!0):c;if(a.timer&&a.newscrolly==c&&a.newscrollx==b)return!0;a.timer&&t(a.timer);a.timer=0;var f=a.getScrollTop(),h=a.getScrollLeft();(0>(a.newscrolly-f)*(c-f)||0>(a.newscrollx-h)*(b-h))&&a.cancelScroll();a.newscrolly=c;a.newscrollx=b;a.bouncescroll&&a.rail.visibility||(0>a.newscrolly?a.newscrolly=0:a.newscrolly>a.page.maxh&&(a.newscrolly=a.page.maxh));a.bouncescroll&&a.railh.visibility||(0>a.newscrollx?a.newscrollx=0:a.newscrollx>a.page.maxw&&
|
||||
(a.newscrollx=a.page.maxw));a.dst={};a.dst.x=b-h;a.dst.y=c-f;a.dst.px=h;a.dst.py=f;var k=Math.round(Math.sqrt(Math.pow(a.dst.x,2)+Math.pow(a.dst.y,2)));a.dst.ax=a.dst.x/k;a.dst.ay=a.dst.y/k;var l=0,m=k;0==a.dst.x?(l=f,m=c,a.dst.ay=1,a.dst.py=0):0==a.dst.y&&(l=h,m=b,a.dst.ax=1,a.dst.px=0);k=a.getTransitionSpeed(k);d&&1>=d&&(k*=d);a.bzscroll=0<k?a.bzscroll?a.bzscroll.update(m,k):new A(l,m,k,0,1,0,1):!1;if(!a.timer){(f==a.page.maxh&&c>=a.page.maxh||h==a.page.maxw&&b>=a.page.maxw)&&a.checkContentSize();
|
||||
var n=1;a.cancelAnimationFrame=!1;a.timer=1;a.onscrollstart&&!a.scrollrunning&&a.onscrollstart.call(a,{type:"scrollstart",current:{x:h,y:f},request:{x:b,y:c},end:{x:a.newscrollx,y:a.newscrolly},speed:k});e();(f==a.page.maxh&&c>=f||h==a.page.maxw&&b>=h)&&a.checkContentSize();a.noticeCursor()}},this.cancelScroll=function(){a.timer&&t(a.timer);a.timer=0;a.bzscroll=!1;a.scrollrunning=!1;return a}):(this.doScrollLeft=function(b,c){var d=a.getScrollTop();a.doScrollPos(b,d,c)},this.doScrollTop=function(b,
|
||||
c){var d=a.getScrollLeft();a.doScrollPos(d,b,c)},this.doScrollPos=function(b,c,d){var e=b>a.page.maxw?a.page.maxw:b;0>e&&(e=0);var f=c>a.page.maxh?a.page.maxh:c;0>f&&(f=0);a.synched("scroll",function(){a.setScrollTop(f);a.setScrollLeft(e)})},this.cancelScroll=function(){});this.doScrollBy=function(b,c){var d=0,d=c?Math.floor((a.scroll.y-b)*a.scrollratio.y):(a.timer?a.newscrolly:a.getScrollTop(!0))-b;if(a.bouncescroll){var e=Math.round(a.view.h/2);d<-e?d=-e:d>a.page.maxh+e&&(d=a.page.maxh+e)}a.cursorfreezed=
|
||||
!1;e=a.getScrollTop(!0);if(0>d&&0>=e)return a.noticeCursor();if(d>a.page.maxh&&e>=a.page.maxh)return a.checkContentSize(),a.noticeCursor();a.doScrollTop(d)};this.doScrollLeftBy=function(b,c){var d=0,d=c?Math.floor((a.scroll.x-b)*a.scrollratio.x):(a.timer?a.newscrollx:a.getScrollLeft(!0))-b;if(a.bouncescroll){var e=Math.round(a.view.w/2);d<-e?d=-e:d>a.page.maxw+e&&(d=a.page.maxw+e)}a.cursorfreezed=!1;e=a.getScrollLeft(!0);if(0>d&&0>=e||d>a.page.maxw&&e>=a.page.maxw)return a.noticeCursor();a.doScrollLeft(d)};
|
||||
this.doScrollTo=function(b,c){c&&Math.round(b*a.scrollratio.y);a.cursorfreezed=!1;a.doScrollTop(b)};this.checkContentSize=function(){var b=a.getContentSize();b.h==a.page.h&&b.w==a.page.w||a.resize(!1,b)};a.onscroll=function(b){a.rail.drag||a.cursorfreezed||a.synched("scroll",function(){a.scroll.y=Math.round(a.getScrollTop()*(1/a.scrollratio.y));a.railh&&(a.scroll.x=Math.round(a.getScrollLeft()*(1/a.scrollratio.x)));a.noticeCursor()})};a.bind(a.docscroll,"scroll",a.onscroll);this.doZoomIn=function(b){if(!a.zoomactive){a.zoomactive=
|
||||
!0;a.zoomrestore={style:{}};var c="position top left zIndex backgroundColor marginTop marginBottom marginLeft marginRight".split(" "),d=a.win[0].style,h;for(h in c){var k=c[h];a.zoomrestore.style[k]="undefined"!=typeof d[k]?d[k]:""}a.zoomrestore.style.width=a.win.css("width");a.zoomrestore.style.height=a.win.css("height");a.zoomrestore.padding={w:a.win.outerWidth()-a.win.width(),h:a.win.outerHeight()-a.win.height()};e.isios4&&(a.zoomrestore.scrollTop=f(window).scrollTop(),f(window).scrollTop(0));
|
||||
a.win.css({position:e.isios4?"absolute":"fixed",top:0,left:0,"z-index":x+100,margin:"0px"});c=a.win.css("backgroundColor");(""==c||/transparent|rgba\(0, 0, 0, 0\)|rgba\(0,0,0,0\)/.test(c))&&a.win.css("backgroundColor","#fff");a.rail.css({"z-index":x+101});a.zoom.css({"z-index":x+102});a.zoom.css("backgroundPosition","0px -18px");a.resizeZoom();a.onzoomin&&a.onzoomin.call(a);return a.cancelEvent(b)}};this.doZoomOut=function(b){if(a.zoomactive)return a.zoomactive=!1,a.win.css("margin",""),a.win.css(a.zoomrestore.style),
|
||||
e.isios4&&f(window).scrollTop(a.zoomrestore.scrollTop),a.rail.css({"z-index":a.zindex}),a.zoom.css({"z-index":a.zindex}),a.zoomrestore=!1,a.zoom.css("backgroundPosition","0px 0px"),a.onResize(),a.onzoomout&&a.onzoomout.call(a),a.cancelEvent(b)};this.doZoom=function(b){return a.zoomactive?a.doZoomOut(b):a.doZoomIn(b)};this.resizeZoom=function(){if(a.zoomactive){var b=a.getScrollTop();a.win.css({width:f(window).width()-a.zoomrestore.padding.w+"px",height:f(window).height()-a.zoomrestore.padding.h+"px"});
|
||||
a.onResize();a.setScrollTop(Math.min(a.page.maxh,b))}};this.init();f.nicescroll.push(this)},L=function(f){var c=this;this.nc=f;this.steptime=this.lasttime=this.speedy=this.speedx=this.lasty=this.lastx=0;this.snapy=this.snapx=!1;this.demuly=this.demulx=0;this.lastscrolly=this.lastscrollx=-1;this.timer=this.chky=this.chkx=0;this.time=function(){return+new Date};this.reset=function(f,k){c.stop();var d=c.time();c.steptime=0;c.lasttime=d;c.speedx=0;c.speedy=0;c.lastx=f;c.lasty=k;c.lastscrollx=-1;c.lastscrolly=
|
||||
-1};this.update=function(f,k){var d=c.time();c.steptime=d-c.lasttime;c.lasttime=d;var d=k-c.lasty,n=f-c.lastx,p=c.nc.getScrollTop(),a=c.nc.getScrollLeft(),p=p+d,a=a+n;c.snapx=0>a||a>c.nc.page.maxw;c.snapy=0>p||p>c.nc.page.maxh;c.speedx=n;c.speedy=d;c.lastx=f;c.lasty=k};this.stop=function(){c.nc.unsynched("domomentum2d");c.timer&&clearTimeout(c.timer);c.timer=0;c.lastscrollx=-1;c.lastscrolly=-1};this.doSnapy=function(f,k){var d=!1;0>k?(k=0,d=!0):k>c.nc.page.maxh&&(k=c.nc.page.maxh,d=!0);0>f?(f=0,d=
|
||||
!0):f>c.nc.page.maxw&&(f=c.nc.page.maxw,d=!0);d?c.nc.doScrollPos(f,k,c.nc.opt.snapbackspeed):c.nc.triggerScrollEnd()};this.doMomentum=function(f){var k=c.time(),d=f?k+f:c.lasttime;f=c.nc.getScrollLeft();var n=c.nc.getScrollTop(),p=c.nc.page.maxh,a=c.nc.page.maxw;c.speedx=0<a?Math.min(60,c.speedx):0;c.speedy=0<p?Math.min(60,c.speedy):0;d=d&&60>=k-d;if(0>n||n>p||0>f||f>a)d=!1;f=c.speedx&&d?c.speedx:!1;if(c.speedy&&d&&c.speedy||f){var s=Math.max(16,c.steptime);50<s&&(f=s/50,c.speedx*=f,c.speedy*=f,s=
|
||||
50);c.demulxy=0;c.lastscrollx=c.nc.getScrollLeft();c.chkx=c.lastscrollx;c.lastscrolly=c.nc.getScrollTop();c.chky=c.lastscrolly;var e=c.lastscrollx,r=c.lastscrolly,t=function(){var d=600<c.time()-k?.04:.02;c.speedx&&(e=Math.floor(c.lastscrollx-c.speedx*(1-c.demulxy)),c.lastscrollx=e,0>e||e>a)&&(d=.1);c.speedy&&(r=Math.floor(c.lastscrolly-c.speedy*(1-c.demulxy)),c.lastscrolly=r,0>r||r>p)&&(d=.1);c.demulxy=Math.min(1,c.demulxy+d);c.nc.synched("domomentum2d",function(){c.speedx&&(c.nc.getScrollLeft()!=
|
||||
c.chkx&&c.stop(),c.chkx=e,c.nc.setScrollLeft(e));c.speedy&&(c.nc.getScrollTop()!=c.chky&&c.stop(),c.chky=r,c.nc.setScrollTop(r));c.timer||(c.nc.hideCursor(),c.doSnapy(e,r))});1>c.demulxy?c.timer=setTimeout(t,s):(c.stop(),c.nc.hideCursor(),c.doSnapy(e,r))};t()}else c.doSnapy(c.nc.getScrollLeft(),c.nc.getScrollTop())}},w=f.fn.scrollTop;f.cssHooks.pageYOffset={get:function(k,c,h){return(c=f.data(k,"__nicescroll")||!1)&&c.ishwscroll?c.getScrollTop():w.call(k)},set:function(k,c){var h=f.data(k,"__nicescroll")||
|
||||
!1;h&&h.ishwscroll?h.setScrollTop(parseInt(c)):w.call(k,c);return this}};f.fn.scrollTop=function(k){if("undefined"==typeof k){var c=this[0]?f.data(this[0],"__nicescroll")||!1:!1;return c&&c.ishwscroll?c.getScrollTop():w.call(this)}return this.each(function(){var c=f.data(this,"__nicescroll")||!1;c&&c.ishwscroll?c.setScrollTop(parseInt(k)):w.call(f(this),k)})};var B=f.fn.scrollLeft;f.cssHooks.pageXOffset={get:function(k,c,h){return(c=f.data(k,"__nicescroll")||!1)&&c.ishwscroll?c.getScrollLeft():B.call(k)},
|
||||
set:function(k,c){var h=f.data(k,"__nicescroll")||!1;h&&h.ishwscroll?h.setScrollLeft(parseInt(c)):B.call(k,c);return this}};f.fn.scrollLeft=function(k){if("undefined"==typeof k){var c=this[0]?f.data(this[0],"__nicescroll")||!1:!1;return c&&c.ishwscroll?c.getScrollLeft():B.call(this)}return this.each(function(){var c=f.data(this,"__nicescroll")||!1;c&&c.ishwscroll?c.setScrollLeft(parseInt(k)):B.call(f(this),k)})};var C=function(k){var c=this;this.length=0;this.name="nicescrollarray";this.each=function(d){for(var f=
|
||||
0,h=0;f<c.length;f++)d.call(c[f],h++);return c};this.push=function(d){c[c.length]=d;c.length++};this.eq=function(d){return c[d]};if(k)for(var h=0;h<k.length;h++){var m=f.data(k[h],"__nicescroll")||!1;m&&(this[this.length]=m,this.length++)}return this};(function(f,c,h){for(var m=0;m<c.length;m++)h(f,c[m])})(C.prototype,"show hide toggle onResize resize remove stop doScrollPos".split(" "),function(f,c){f[c]=function(){var f=arguments;return this.each(function(){this[c].apply(this,f)})}});f.fn.getNiceScroll=
|
||||
function(k){return"undefined"==typeof k?new C(this):this[k]&&f.data(this[k],"__nicescroll")||!1};f.extend(f.expr[":"],{nicescroll:function(k){return f.data(k,"__nicescroll")?!0:!1}});f.fn.niceScroll=function(k,c){"undefined"!=typeof c||"object"!=typeof k||"jquery"in k||(c=k,k=!1);c=f.extend({},c);var h=new C;"undefined"==typeof c&&(c={});k&&(c.doc=f(k),c.win=f(this));var m=!("doc"in c);m||"win"in c||(c.win=f(this));this.each(function(){var d=f(this).data("__nicescroll")||!1;d||(c.doc=m?f(this):c.doc,
|
||||
d=new R(c,f(this)),f(this).data("__nicescroll",d));h.push(d)});return 1==h.length?h[0]:h};window.NiceScroll={getjQuery:function(){return f}};f.nicescroll||(f.nicescroll=new C,f.nicescroll.options=I)});
|
||||
2275
lib/jquery.nouislider.all.js
Normal file
2275
lib/jquery.nouislider.all.js
Normal file
File diff suppressed because it is too large
Load diff
265
lib/jquery.nouislider.css
Normal file
265
lib/jquery.nouislider.css
Normal file
|
|
@ -0,0 +1,265 @@
|
|||
|
||||
/* Functional styling;
|
||||
* These styles are required for noUiSlider to function.
|
||||
* You don't need to change these rules to apply your design.
|
||||
*/
|
||||
.noUi-target,
|
||||
.noUi-target * {
|
||||
-webkit-touch-callout: none;
|
||||
-webkit-user-select: none;
|
||||
-ms-touch-action: none;
|
||||
-ms-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.noUi-target {
|
||||
position: relative;
|
||||
}
|
||||
.noUi-base {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: relative;
|
||||
}
|
||||
.noUi-origin {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
}
|
||||
.noUi-handle {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
.noUi-stacking .noUi-handle {
|
||||
/* This class is applied to the lower origin when
|
||||
its values is > 50%. */
|
||||
z-index: 10;
|
||||
}
|
||||
.noUi-stacking + .noUi-origin {
|
||||
/* Fix stacking order in IE7, which incorrectly
|
||||
creates a new context for the origins. */
|
||||
*z-index: -1;
|
||||
}
|
||||
.noUi-state-tap .noUi-origin {
|
||||
-webkit-transition: left 0.3s, top 0.3s;
|
||||
transition: left 0.3s, top 0.3s;
|
||||
}
|
||||
.noUi-state-drag * {
|
||||
cursor: inherit !important;
|
||||
}
|
||||
|
||||
/* Painting and performance;
|
||||
* Browsers can paint handles in their own layer.
|
||||
*/
|
||||
.noUi-base {
|
||||
-webkit-transform: translate3d(0,0,0);
|
||||
transform: translate3d(0,0,0);
|
||||
}
|
||||
|
||||
/* Slider size and handle placement;
|
||||
*/
|
||||
.noUi-horizontal {
|
||||
height: 18px;
|
||||
}
|
||||
.noUi-horizontal .noUi-handle {
|
||||
width: 34px;
|
||||
height: 28px;
|
||||
left: -17px;
|
||||
top: -6px;
|
||||
}
|
||||
.noUi-vertical {
|
||||
width: 18px;
|
||||
}
|
||||
.noUi-vertical .noUi-handle {
|
||||
width: 28px;
|
||||
height: 34px;
|
||||
left: -6px;
|
||||
top: -17px;
|
||||
}
|
||||
|
||||
/* Styling;
|
||||
*/
|
||||
.noUi-background {
|
||||
background: #FAFAFA;
|
||||
}
|
||||
.noUi-connect {
|
||||
background: #3FB8AF;
|
||||
box-shadow: inset 0 0 3px 2px rgba(51,51,51,0.45);
|
||||
-webkit-transition: background 450ms;
|
||||
transition: background 450ms;
|
||||
}
|
||||
.noUi-origin {
|
||||
border-radius: 2px;
|
||||
}
|
||||
.noUi-target {
|
||||
border-radius: 4px;
|
||||
border: 1px solid #D3D3D3;
|
||||
box-shadow: inset 0 1px 1px #F0F0F0, 0 3px 6px -5px #BBB;
|
||||
}
|
||||
.noUi-target.noUi-connect {
|
||||
box-shadow: inset 0 0 3px rgba(51,51,51,0.45), 0 3px 6px -5px #BBB;
|
||||
}
|
||||
|
||||
/* Handles and cursors;
|
||||
*/
|
||||
.noUi-dragable {
|
||||
cursor: w-resize;
|
||||
}
|
||||
.noUi-vertical .noUi-dragable {
|
||||
cursor: n-resize;
|
||||
}
|
||||
.noUi-handle {
|
||||
border: 1px solid #D9D9D9;
|
||||
border-radius: 3px;
|
||||
background: #FFF;
|
||||
cursor: default;
|
||||
box-shadow: inset 0 0 1px #FFF,
|
||||
inset 0 1px 7px #EBEBEB,
|
||||
0 3px 6px -3px #BBB;
|
||||
}
|
||||
.noUi-active {
|
||||
box-shadow: inset 0 0 1px #FFF,
|
||||
inset 0 1px 7px #DDD,
|
||||
0 3px 6px -3px #BBB;
|
||||
}
|
||||
|
||||
/* Handle stripes;
|
||||
*/
|
||||
.noUi-handle:before,
|
||||
.noUi-handle:after {
|
||||
content: "";
|
||||
display: block;
|
||||
position: absolute;
|
||||
height: 14px;
|
||||
width: 1px;
|
||||
background: #E8E7E6;
|
||||
left: 14px;
|
||||
top: 6px;
|
||||
}
|
||||
.noUi-handle:after {
|
||||
left: 17px;
|
||||
}
|
||||
.noUi-vertical .noUi-handle:before,
|
||||
.noUi-vertical .noUi-handle:after {
|
||||
width: 14px;
|
||||
height: 1px;
|
||||
left: 6px;
|
||||
top: 14px;
|
||||
}
|
||||
.noUi-vertical .noUi-handle:after {
|
||||
top: 17px;
|
||||
}
|
||||
|
||||
/* Disabled state;
|
||||
*/
|
||||
[disabled].noUi-connect,
|
||||
[disabled] .noUi-connect {
|
||||
background: #B8B8B8;
|
||||
}
|
||||
[disabled] .noUi-handle {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
|
||||
/* PIPS */
|
||||
|
||||
|
||||
/* Base;
|
||||
*
|
||||
*/
|
||||
.noUi-pips,
|
||||
.noUi-pips * {
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.noUi-pips {
|
||||
position: absolute;
|
||||
font: 400 12px Arial;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
/* Values;
|
||||
*
|
||||
*/
|
||||
.noUi-value {
|
||||
width: 40px;
|
||||
position: absolute;
|
||||
text-align: center;
|
||||
}
|
||||
.noUi-value-sub {
|
||||
color: #ccc;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
/* Markings;
|
||||
*
|
||||
*/
|
||||
.noUi-marker {
|
||||
position: absolute;
|
||||
background: #CCC;
|
||||
}
|
||||
.noUi-marker-sub {
|
||||
background: #AAA;
|
||||
}
|
||||
.noUi-marker-large {
|
||||
background: #AAA;
|
||||
}
|
||||
|
||||
/* Horizontal layout;
|
||||
*
|
||||
*/
|
||||
.noUi-pips-horizontal {
|
||||
padding: 10px 0;
|
||||
height: 50px;
|
||||
top: 100%;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
}
|
||||
.noUi-value-horizontal {
|
||||
margin-left: -20px;
|
||||
padding-top: 20px;
|
||||
}
|
||||
.noUi-value-horizontal.noUi-value-sub {
|
||||
padding-top: 15px;
|
||||
}
|
||||
|
||||
.noUi-marker-horizontal.noUi-marker {
|
||||
margin-left: -1px;
|
||||
width: 2px;
|
||||
height: 5px;
|
||||
}
|
||||
.noUi-marker-horizontal.noUi-marker-sub {
|
||||
height: 10px;
|
||||
}
|
||||
.noUi-marker-horizontal.noUi-marker-large {
|
||||
height: 15px;
|
||||
}
|
||||
|
||||
/* Vertical layout;
|
||||
*
|
||||
*/
|
||||
.noUi-pips-vertical {
|
||||
padding: 0 10px;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
left: 100%;
|
||||
}
|
||||
.noUi-value-vertical {
|
||||
width: 15px;
|
||||
margin-left: 20px;
|
||||
margin-top: -5px;
|
||||
}
|
||||
|
||||
.noUi-marker-vertical.noUi-marker {
|
||||
width: 5px;
|
||||
height: 2px;
|
||||
margin-top: -1px;
|
||||
}
|
||||
.noUi-marker-vertical.noUi-marker-sub {
|
||||
width: 10px;
|
||||
}
|
||||
.noUi-marker-vertical.noUi-marker-large {
|
||||
width: 15px;
|
||||
}
|
||||
285
lib/oschtmlgui.js
Normal file
285
lib/oschtmlgui.js
Normal file
|
|
@ -0,0 +1,285 @@
|
|||
|
||||
// defaultTarget
|
||||
defaultTarget = 'localhost:9999'
|
||||
|
||||
// Disable console
|
||||
console.log = function() {}
|
||||
|
||||
// Predeclare python callbacks (before document's ready event!)
|
||||
loadPreset = function(){};
|
||||
oscReceive = function(){};
|
||||
init = function(){};
|
||||
|
||||
// jQuery loaded
|
||||
$(document).ready(function(){
|
||||
|
||||
document.title = 'INIT'
|
||||
|
||||
init = function() {
|
||||
|
||||
__strips__ = [];
|
||||
|
||||
parsetabs(TABS,false,false)
|
||||
|
||||
function parsetabs(TABS,parent,sub) {
|
||||
|
||||
if (!sub) {
|
||||
var $nav = $(document.createElement('div')).addClass('main navigation'),
|
||||
$navtabs = $(document.createElement('ul')).addClass('tablist'),
|
||||
$mainNavOptions = $(document.createElement('ul')).addClass('options').append('\
|
||||
<ul id="options">\
|
||||
<li><a href="#" class="saveState">Save</a></li>\
|
||||
<li><a href="#" class="loadState">Load</a></li>\
|
||||
<li><a href="#" class="goFullscreen">Fullscreen</a></li>\
|
||||
<li class="showOptions"><a href="#"></a></li>\
|
||||
</ul>\
|
||||
'),
|
||||
$content = $(document.createElement('div')).addClass('content');
|
||||
$nav.append($navtabs).append($mainNavOptions);
|
||||
$('#__container__').append($nav).append($content);
|
||||
} else {
|
||||
var $nav = $(document.createElement('div')).addClass('sub navigation'),
|
||||
$navtabs = $(document.createElement('ul')).addClass('tablist'),
|
||||
|
||||
$content = $(document.createElement('div')).addClass('content hastabs');
|
||||
$nav.append($navtabs);
|
||||
parent.append($nav).append($content);
|
||||
|
||||
}
|
||||
|
||||
$.each(TABS,function(tabId,tabData){
|
||||
|
||||
var title = tabData.title||tabId
|
||||
|
||||
$navtabs.append('<li><a href="#'+tabId+'">'+title+'</a></li>');
|
||||
|
||||
var $tabContent = $(document.createElement('div')).addClass('tab').attr('id',tabId);
|
||||
|
||||
|
||||
if (tabData.tabs) {
|
||||
|
||||
parsetabs(tabData.tabs,parent=$tabContent,sub=true);
|
||||
|
||||
} else {
|
||||
|
||||
$.each(tabData.strips,function(stripId,stripData){// parse strips
|
||||
var color = stripData.color?'style="background-color:'+stripData.color+'"':'';
|
||||
var title = stripData.title || stripId;
|
||||
var $strip = $('\
|
||||
<div class="strip">\
|
||||
<div class="title" '+color+'>'+title+'</div>\
|
||||
<div class="fader-wrapper"><div class="fader locked" path="'+stripData.path+'" name="'+stripId+'"></div></div>\
|
||||
<input value="0"></input>\
|
||||
</div>\
|
||||
');
|
||||
$strip.fader = $strip.find('.fader')
|
||||
|
||||
var range = stripData.range=='db'?{'min': -70,'20%': -40,'45%': -20,'60%': -10,'max': 6}:stripData.range;
|
||||
|
||||
var pips = function() {
|
||||
if (stripData.range=='db') {
|
||||
return [-70,-60,-50,-40,-30,-20,-10,-6,-3,0,3,6];
|
||||
} else {
|
||||
var autopips = [];
|
||||
var i=0;
|
||||
for (key in range) {
|
||||
//alert(range.key)
|
||||
autopips[i]=range[key];
|
||||
i=i+1;
|
||||
}
|
||||
autopips.push((range.max-range.min)/2);
|
||||
autopips.push((range.max-range.min)/4);
|
||||
autopips.push((range.max-range.min)*.75);
|
||||
return autopips;
|
||||
}
|
||||
}
|
||||
var pips = pips();
|
||||
|
||||
|
||||
$strip.find('.fader')
|
||||
.noUiSlider({
|
||||
orientation:'vertical',
|
||||
direction: "rtl",
|
||||
behaviour: "none-drag",
|
||||
connect: "lower",
|
||||
//animate:false,
|
||||
start: 0,
|
||||
range: range
|
||||
})
|
||||
.noUiSlider_pips({
|
||||
mode: 'values',
|
||||
density: 1,
|
||||
filter:function(v,t){return v==0?1:2;},
|
||||
values: pips,
|
||||
format: wNumb({})
|
||||
})
|
||||
.Link('lower').to($strip.find('input'))
|
||||
.on('slide',function(){
|
||||
if ($(this).hasClass('locked')) return;
|
||||
var p = stripData.path,
|
||||
n = stripData.args,
|
||||
t = stripData.target?stripData.target:defaultTarget,
|
||||
v = stripData.scale1?
|
||||
Math.max(0,Math.round(10000*((Math.abs(range.min)/(range.max-range.min)) + $(this).val()/(range.max-range.min)))/10000)
|
||||
: $(this).val();
|
||||
sendOsc([t,p,n,v]);
|
||||
})
|
||||
.on('set',function(){
|
||||
if ($(this).hasClass('locked')) return;
|
||||
var p = stripData.path,
|
||||
t = stripData.target?stripData.target:defaultTarget,
|
||||
a = stripData.args,
|
||||
v = stripData.scale1?
|
||||
Math.max(0,Math.round(10000*((Math.abs(range.min)/(range.max-range.min)) + $(this).val()/(range.max-range.min)))/10000)
|
||||
: $(this).val();
|
||||
|
||||
sendOsc([t,p,a,v]);
|
||||
});
|
||||
|
||||
// store reference for state saving/loading
|
||||
__strips__.push($strip)
|
||||
|
||||
$tabContent.append($strip);
|
||||
});// strips parsed
|
||||
|
||||
}
|
||||
|
||||
$content.append($tabContent);
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Synchronize strips that share the same name
|
||||
$(".fader").each(function(){
|
||||
$(".fader[name='"+$(this).attr('name')+"']").not(this).Link('lower').to($(this), crossUpdate);
|
||||
}).removeClass('locked');
|
||||
function crossUpdate ( value, handle, slider ) {
|
||||
$(this).val( value );
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// Scrollbar
|
||||
$('#__container__').niceScroll({
|
||||
cursorcolor: "#444",
|
||||
//touchbehavior:true,
|
||||
//bouncescroll:true,
|
||||
cursorborder:0,
|
||||
cursorborderradius:0,
|
||||
cursoropacitymin:1,
|
||||
cursorwidth:'30px',
|
||||
zindex:999999,
|
||||
autohidemode:false,
|
||||
});
|
||||
|
||||
// Tabs...
|
||||
$('.tablist a').click(function(e){
|
||||
e.preventDefault();
|
||||
var id = $(this).attr('href');
|
||||
$(id).siblings().removeClass('on');
|
||||
$(id).addClass('on');
|
||||
$(this).parents('ul').find('.on').removeClass('on');
|
||||
$(this).addClass('on');
|
||||
|
||||
updateScrollbar()
|
||||
|
||||
})
|
||||
|
||||
$(window).resize(function(){
|
||||
updateScrollbar()
|
||||
})
|
||||
|
||||
function updateScrollbar(){
|
||||
// update scrollbar
|
||||
$('#__container__').getNiceScroll().resize();
|
||||
$('#__container__').focus();
|
||||
if ($('.nicescroll-rails-hr .nicescroll-cursors').width()) {
|
||||
$('body').addClass('scrollable')
|
||||
} else {
|
||||
$('body').removeClass('scrollable')
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Activate first tabs
|
||||
$('.tablist li:first-child a').click();
|
||||
|
||||
|
||||
// Options menu
|
||||
$('.showOptions a').click(function(e){
|
||||
e.preventDefault();
|
||||
$('#options').toggleClass('open');
|
||||
})
|
||||
$('.goFullscreen').click(function(e){
|
||||
e.preventDefault();
|
||||
$(this).toggleClass('on');
|
||||
if ($(this).hasClass('on')) {
|
||||
document.title = 'Fullscreen,1'
|
||||
} else {
|
||||
document.title = 'Fullscreen,0'
|
||||
}
|
||||
|
||||
})
|
||||
$('.saveState').click(function(e){
|
||||
e.preventDefault();
|
||||
saveState();
|
||||
})
|
||||
$('.loadState').click(function(e){
|
||||
e.preventDefault();
|
||||
loadState();
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// PYTHON FUNCTIONS
|
||||
|
||||
function sendOsc(argsPack){
|
||||
// Unpack args for osc sending function
|
||||
document.title = 'Send,'+argsPack.filter(function(n){ return n != undefined }).join(',');
|
||||
}
|
||||
|
||||
function saveState() {
|
||||
data = []
|
||||
$.each(__strips__,function(i,strip) {
|
||||
data.push('strip:'+strip.fader.attr('name')+':'+strip.fader.val())
|
||||
})
|
||||
document.title = 'Save,'+data.join(';')
|
||||
}
|
||||
|
||||
function loadState() {
|
||||
document.title = 'Load'
|
||||
}
|
||||
|
||||
// CALLBACKS
|
||||
|
||||
loadPreset = function(preset){
|
||||
|
||||
$.each(preset.split(';'),function(i,d) {
|
||||
var data = d.split(':')
|
||||
setTimeout(function(){
|
||||
if (data[0] == 'strip') {
|
||||
$('.fader[name="'+data[1]+'"]').val(data[2]).trigger('set')
|
||||
|
||||
}
|
||||
},i)
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
receiveOsc = function(argsPack){
|
||||
argsPack = argsPack.split(',')
|
||||
$('.fader[path="'+argsPack[0]+'"]').addClass('locked').val(argsPack.pop()).removeClass('locked')
|
||||
}
|
||||
|
||||
|
||||
}// END INIT
|
||||
|
||||
});
|
||||
|
||||
|
|
@ -4,49 +4,79 @@
|
|||
Osc Html Gui
|
||||
Build your own OSC control gui with html/css/javascript !
|
||||
|
||||
# Partial doc... check the example !
|
||||
|
||||
>>> import oschtmlgui
|
||||
>>> gui = oscHtmlGui(html='/path/to/gui.html')
|
||||
>>> gui = oscHtmlGui(config='/path/to/config.js')
|
||||
>>> gui.main()
|
||||
|
||||
Parameters :
|
||||
port, input port for external control of the gui
|
||||
target, target_ip:target_port to send osc messages to, multiples targets can be specified, separated by a space
|
||||
appName, name of the gui window, prefix for osc messages
|
||||
presetName, user values can be saved by the gui in presetName.preset
|
||||
html, path to the html gui
|
||||
port input port for external sync of the gui
|
||||
appName name of the gui window
|
||||
presetName user values can be saved by the gui in presetName.preset
|
||||
config path (relative or absolute) to the javascript config file which lists the widgets in the gui
|
||||
|
||||
Html Gui:
|
||||
Config file :
|
||||
|
||||
- Build your html page like any other (including css stylesheets and javascript)
|
||||
- You can communicate with the gui engine by changing the document's title (document.title = newtitle), here are the recognized instructions :
|
||||
- 'param, name, value' will send this osc message to the target(s) : '/appName/param name value' #value must be a number, it is converted to float anyway
|
||||
- 'Save, preset' will store the preset in presetName.preset, preset must be of the form 'param name value;param name value;'
|
||||
- 'Load' will recall values stored in presetName.preset and send osc messages for each value
|
||||
|
||||
|
||||
- The html gui must contain the following javascript function (/!\ not wrapped in a document.ready() function) :
|
||||
- setValue(param, name, value) : this is required for preset loading and for external osc control, and must be adapted to the gui's elements
|
||||
The config file is basically a javascript file which must define the variable TABS as a dictionnary :
|
||||
|
||||
TABS = {
|
||||
|
||||
// Here are the main tabs
|
||||
|
||||
id_of_tab_1:{
|
||||
title: "title", // as displayed in the gui (uses id as fallback)
|
||||
strips: {
|
||||
|
||||
// List of widgets (only strips/vertical faders for now)
|
||||
|
||||
id_of_strip_1: {
|
||||
title: "title", // as displayed in the gui (uses id as fallback)
|
||||
target: "ip_adress:port", // you can specify multiple targets separated spaces
|
||||
path: "/osc/path",
|
||||
args: "extra osc args", // separeted by spaces (optionnal) prepended to the numerical argument controled by the widget
|
||||
range: {'min':0,'30%':10,'90%',20,'max':30}, // defines the range of the numerical argument, only min and max are required
|
||||
// you can directly set range:'db' for a log scale (between -70db and 6dB, designed for non mixer)
|
||||
color:'#333', // optionnal, css color definition (hex, rgb, rgba or standard color name)
|
||||
scale1: // ONLY IF YOU WANT THE OSC MESSAGE TO BE RESCALED BETWEEN 0 AND 1
|
||||
},
|
||||
|
||||
id_of_strip_2 {
|
||||
...
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
id_of_tab_2:{
|
||||
title: "title",
|
||||
// Nested tabs !!
|
||||
id_of_subtab_1: {
|
||||
title: "...",
|
||||
strips: {
|
||||
...
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
"""
|
||||
import gtk, webkit, gobject, liblo as _liblo
|
||||
from os import path as os_path
|
||||
|
||||
class oscHtmlGui(object):
|
||||
def __init__(self,port=3333, target='127.0.0.1:3334', appName='oscHtmlgui', presetName='oscHtmlgui', html=None):
|
||||
def __init__(self,port=None, appName='oscHtmlgui', presetName='oscHtmlgui', config=None):
|
||||
|
||||
self.port = port
|
||||
self.target = target.split(' ')
|
||||
self.appName = appName
|
||||
self.presetName = presetName
|
||||
self.html = html
|
||||
|
||||
if self.html == None:
|
||||
raise Exception('You must specify the absolute path to the html gui file')
|
||||
self.html = os_path.dirname(os_path.abspath(__file__)) + '/base.html'
|
||||
|
||||
self.server = _liblo.ServerThread(self.port)
|
||||
self.server.register_methods(self)
|
||||
self.server.start()
|
||||
|
||||
try:
|
||||
self.configfile = open(config,'r')
|
||||
except:
|
||||
raise Exception('*** config file file cannot be read !')
|
||||
|
||||
if self.port:
|
||||
self.server = _liblo.ServerThread(self.port)
|
||||
self.server.register_methods(self)
|
||||
self.server.start()
|
||||
|
||||
self.window = gtk.Window()
|
||||
self.window.set_title(appName)
|
||||
|
|
@ -59,7 +89,7 @@ class oscHtmlGui(object):
|
|||
|
||||
self.browser.open(self.html)
|
||||
|
||||
self.window.set_default_size(800, 600)
|
||||
self.window.set_default_size(400, 600)
|
||||
self.window.show_all()
|
||||
self.window.connect("destroy", gtk.main_quit)
|
||||
|
||||
|
|
@ -77,17 +107,20 @@ class oscHtmlGui(object):
|
|||
|
||||
def title_changed(self, title):
|
||||
if title != 'null':
|
||||
if title.split(',')[0] == 'Load':
|
||||
if title.split(',')[0] == 'INIT':
|
||||
self.async_gtk_msg(self.browser.execute_script)(self.configfile.read())
|
||||
self.async_gtk_msg(self.browser.execute_script)('init()')
|
||||
|
||||
elif title.split(',')[0] == 'Load':
|
||||
try:
|
||||
f = open(self.presetName+'.preset','r')
|
||||
except:
|
||||
self.alertError(self.presetName+'.preset'+' not found !')
|
||||
return
|
||||
preset = f.read().split('\n')
|
||||
for i in range(len(preset)-1):
|
||||
self.sendOsc('/'+preset[i].split(' ')[0],preset[i].split(' ')[1],float(preset[i].split(' ')[2]))
|
||||
self.setValue(preset[i].split(' ')[0],preset[i].split(' ')[1],float(preset[i].split(' ')[2]))
|
||||
|
||||
|
||||
preset = f.read().replace('\n',';')
|
||||
self.async_gtk_msg(self.browser.execute_script)('loadPreset("'+preset+'")')
|
||||
|
||||
elif title.split(',')[0] == 'Save':
|
||||
try:
|
||||
preset = title.split(',')[1]
|
||||
|
|
@ -97,13 +130,19 @@ class oscHtmlGui(object):
|
|||
self.alertError('Preset Saved')
|
||||
except:
|
||||
self.alertError('Could not save the preset...')
|
||||
|
||||
elif title.split(',')[0] == 'Fullscreen':
|
||||
self.toggleFullscreen(title.split(',')[1])
|
||||
else:
|
||||
param = title.split(',')[0]
|
||||
name = title.split(',')[1]
|
||||
value = float(title.split(',')[2])
|
||||
self.sendOsc(param,name,value)
|
||||
|
||||
elif title.split(',')[0] == 'Send':
|
||||
target = title.split(',')[1]
|
||||
path = title.split(',')[2]
|
||||
args = title.split(',')[3:]
|
||||
try:
|
||||
args[-1] = float(args[-1])
|
||||
except:
|
||||
pass
|
||||
self.sendOsc(target,path,args)
|
||||
|
||||
|
||||
def toggleFullscreen(self,e):
|
||||
|
|
@ -112,13 +151,15 @@ class oscHtmlGui(object):
|
|||
else:
|
||||
self.window.unfullscreen()
|
||||
|
||||
def sendOsc(self,param,name,value):
|
||||
path = '/' + self.appName + '/' + param
|
||||
for i in range(len(self.target)):
|
||||
_liblo.send('osc.udp://'+self.target[i], path, name, value)
|
||||
def sendOsc(self,target,path,args):
|
||||
if ' ' in target:
|
||||
for i in range(len(target.split(' '))):
|
||||
_liblo.send('osc.udp://'+target[i], path, *args)
|
||||
else:
|
||||
_liblo.send('osc.udp://'+target, path, *args)
|
||||
|
||||
def setValue(self,param,name,value):
|
||||
self.async_gtk_msg(self.browser.execute_script)('setValue("'+param+'","'+name+'",'+str(value)+')')
|
||||
def receiveOsc(self,a):
|
||||
self.async_gtk_msg(self.browser.execute_script)('receiveOsc("'+','.join(a)+'")')
|
||||
|
||||
def alertError(self,error):
|
||||
self.async_gtk_msg(self.browser.execute_script)('alert("'+error+'")')
|
||||
|
|
@ -133,13 +174,13 @@ class oscHtmlGui(object):
|
|||
|
||||
return fun2
|
||||
|
||||
@_liblo.make_method(None, 'sf')
|
||||
@_liblo.make_method(None, None)
|
||||
def oscIn(self, path, args):
|
||||
if '/'+self.appName in path:
|
||||
param = path.split('/')[-1]
|
||||
name = args[0]
|
||||
value = args[1]
|
||||
self.setValue(param,name,value)
|
||||
a = []
|
||||
a.append(path)
|
||||
for i in range(len(args)):
|
||||
a.append(str(args[i]))
|
||||
self.receiveOsc(a)
|
||||
|
||||
# Utility : oscRouter routes incomming osc messages using a path patch and eventually a parameter patch
|
||||
# port path args >> port path arg
|
||||
BIN
lib/oschtmlgui.pyc
Normal file
BIN
lib/oschtmlgui.pyc
Normal file
Binary file not shown.
301
lib/style.css
Normal file
301
lib/style.css
Normal file
|
|
@ -0,0 +1,301 @@
|
|||
* {
|
||||
margin:0;
|
||||
padding:0;
|
||||
box-sizing:border-box;
|
||||
text-decoration:none;
|
||||
outline:0;
|
||||
font:inherit;
|
||||
}
|
||||
* ::-moz-selection{
|
||||
background:rgba(0,0,0,0);
|
||||
}
|
||||
* ::selection{
|
||||
background:rgba(0,0,0,0);
|
||||
}
|
||||
input::-moz-selection{
|
||||
background:rgba(20,240,250,.4);
|
||||
}
|
||||
input::-webkit-selection{
|
||||
background:rgba(20,240,250,.4);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
html {
|
||||
height:100%;
|
||||
}
|
||||
#__container__ {
|
||||
font-size:13px;
|
||||
line-height:12px;
|
||||
font-family:sans;
|
||||
background:#333;
|
||||
color:#fff;
|
||||
white-space:nowrap;
|
||||
position:absolute;
|
||||
top:0;
|
||||
left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
overflow-x:auto;
|
||||
overflow-y:hidden;
|
||||
padding-top:55px;
|
||||
|
||||
}
|
||||
|
||||
.nicescroll-rails-hr {
|
||||
box-shadow:0 0 8px 0 #111;
|
||||
display:none!important;
|
||||
top:auto!important;
|
||||
bottom:0!important;
|
||||
right:0!important;
|
||||
|
||||
}
|
||||
|
||||
.scrollable #__container__ {
|
||||
padding-bottom:30px;
|
||||
}
|
||||
.scrollable .nicescroll-rails-hr {
|
||||
display:block!important;
|
||||
}
|
||||
|
||||
|
||||
a {
|
||||
color:inherit;
|
||||
}
|
||||
a.on, a:active {
|
||||
background:rgba(20,240,250,.4);
|
||||
}
|
||||
|
||||
.navigation {
|
||||
position:absolute;
|
||||
top:0;
|
||||
left:0;
|
||||
right:0;
|
||||
height:55px;
|
||||
z-index:2;
|
||||
background:#333;
|
||||
font-variant:small-caps;
|
||||
padding:10px 5px;
|
||||
font-size:13px;
|
||||
box-shadow:0 0 0 1px #2A2A2A;
|
||||
|
||||
}
|
||||
.main {
|
||||
box-shadow:0 0 8px 0 #111, 0 0 200px 0 #111;
|
||||
position:fixed;
|
||||
z-index:3;
|
||||
white-space:nowrap;
|
||||
|
||||
overflow:hidden
|
||||
}
|
||||
.navigation ul {
|
||||
list-style:none;
|
||||
font-size:0;
|
||||
|
||||
}
|
||||
.navigation li {
|
||||
font-size:13px;
|
||||
display:inline-block;
|
||||
margin:0 5px;
|
||||
border:1px solid #2A2A2A;
|
||||
background:#444;
|
||||
}
|
||||
.navigation li a {
|
||||
display:block;
|
||||
padding: 10px 10px;
|
||||
}
|
||||
|
||||
#options {
|
||||
position:absolute;
|
||||
right:0px;
|
||||
top:10px;
|
||||
background:#333;
|
||||
padding-left:5px;
|
||||
padding-right:5px;
|
||||
border-left:1px solid #2A2A2A;
|
||||
-webkit-transition:all .5s;
|
||||
}
|
||||
#options li {
|
||||
display:none;
|
||||
}
|
||||
#options.open li {
|
||||
display:inline-block;
|
||||
}
|
||||
#options .showOptions {
|
||||
display:inline-block!important;text-align:center;
|
||||
}
|
||||
.showOptions a:after {
|
||||
content:"+";
|
||||
width:13px;
|
||||
display:block;
|
||||
}
|
||||
#options.open .showOptions a:after {
|
||||
content:"-";
|
||||
width:13px;
|
||||
display:block;
|
||||
}
|
||||
|
||||
.content {
|
||||
height:100%;
|
||||
}
|
||||
.content .tab {
|
||||
height:100%;
|
||||
font-size:0;
|
||||
position:relative;
|
||||
}
|
||||
.content .hastabs {
|
||||
padding-top:55px;
|
||||
}
|
||||
|
||||
.tab {
|
||||
display:none;
|
||||
}
|
||||
.tab.on {
|
||||
display:block;
|
||||
}
|
||||
.strip {
|
||||
width:100px;
|
||||
border:1px solid rgba(0,0,0,0.2);
|
||||
padding:35px 0px;
|
||||
display:inline-block;
|
||||
background:#333;
|
||||
height:100%;
|
||||
position:relative;
|
||||
font-size:13px;
|
||||
}
|
||||
.strip .title {
|
||||
font-variant:small-caps;
|
||||
border-bottom:1px solid #2A2A2A;
|
||||
border-left:0;
|
||||
border-right:0;
|
||||
background:#444;
|
||||
padding:10px 10px;
|
||||
position:absolute;
|
||||
top:0px;
|
||||
left:0;
|
||||
right:0;
|
||||
text-overflow:ellipsis;
|
||||
overflow:hidden
|
||||
}
|
||||
.strip .fader-wrapper {
|
||||
padding:20px 10px;
|
||||
overflow:hidden;
|
||||
height:100%;
|
||||
|
||||
}
|
||||
.strip .fader{
|
||||
height:100%;
|
||||
width:18px;
|
||||
}
|
||||
|
||||
.strip input {
|
||||
width:100%;
|
||||
border:0;
|
||||
border-top:1px solid #2A2A2A;
|
||||
border-left:0;
|
||||
border-right:0;
|
||||
background:#444;
|
||||
color:inherit;
|
||||
display:block;
|
||||
margin:0 auto;
|
||||
padding:10px;
|
||||
position:absolute;
|
||||
bottom:0;
|
||||
left:0;
|
||||
right:0;
|
||||
}
|
||||
.strip input:focus {
|
||||
background:#353535;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.noUi-background {
|
||||
background:#222;
|
||||
border:1px solid rgba(255,255,255,0.2);
|
||||
border-radius:0px;
|
||||
box-shadow:0 0 0;
|
||||
}
|
||||
}
|
||||
.noUi-target {
|
||||
box-shadow:0 0 0;
|
||||
}
|
||||
.noUi-base {
|
||||
z-index:2;
|
||||
|
||||
}
|
||||
.noUi-handle {
|
||||
border-radius:0;
|
||||
box-shadow:0 0 0;
|
||||
background:rgba(255,255,255,0.2);
|
||||
border-color:rgba(255,255,255,0.4);
|
||||
}
|
||||
.noUi-handle:after {
|
||||
display:none;
|
||||
}
|
||||
|
||||
.noUi-vertical .noUi-handle {
|
||||
width:160%;
|
||||
left:-30%;
|
||||
}
|
||||
.noUi-vertical .noUi-handle:before {
|
||||
margin-top:2px;
|
||||
background:rgba(255,255,255,0.3);
|
||||
width:70%!important;
|
||||
left:15%;
|
||||
}
|
||||
|
||||
.noUi-horizontal .noUi-handle:before {
|
||||
background:rgba(255,255,255,0.4);
|
||||
width:1px!important;
|
||||
left:15px;
|
||||
height:16px;
|
||||
margin-top:-1px;
|
||||
}
|
||||
.noUi-horizontal .noUi-dragable:after {
|
||||
content:"";
|
||||
position:absolute;
|
||||
height:100%;
|
||||
left:-5000px;
|
||||
width:10000px;
|
||||
}
|
||||
|
||||
.noUi-connect {
|
||||
background:rgba(20,240,250,.4);
|
||||
border:0;
|
||||
border-radius:0;
|
||||
}
|
||||
.noUi-vertical .noUi-handle {
|
||||
top:-18px;
|
||||
aheight:60px;
|
||||
}
|
||||
.noUi-vertical .noUi-dragable:after {
|
||||
content:"";
|
||||
position:absolute;
|
||||
height:10000px;
|
||||
top:-5000px;
|
||||
width:500px;
|
||||
left:-250px;
|
||||
}
|
||||
.noUi-pips {
|
||||
font-size:11px;
|
||||
font-family:sans;
|
||||
}
|
||||
.noUi-value-vertical {
|
||||
margin-top:-7px;
|
||||
}
|
||||
.noUi-marker-vertical.noUi-marker {
|
||||
height:1px;
|
||||
}
|
||||
.noUi-marker-horizontal.noUi-marker {
|
||||
width:1px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
94
monitorsdagz.js
Normal file
94
monitorsdagz.js
Normal file
|
|
@ -0,0 +1,94 @@
|
|||
nmPorts = {
|
||||
'MonitorsDag':'SCSon:6675',
|
||||
'MonitorsJeannot':'SCSon:6676',
|
||||
'MonitorsORL':'SCSon:6677',
|
||||
'Mains':'SCSon:6678',
|
||||
}
|
||||
|
||||
TABS = {
|
||||
MonitorsDag:{
|
||||
title: 'Monitor Dag-Z',
|
||||
|
||||
strips: {
|
||||
|
||||
mdDrums: {
|
||||
title:'Drums',
|
||||
range:'db',
|
||||
target:nmPorts['MonitorsDag'],
|
||||
path:'/strip/Drums/Gain/Gain%20(dB)'
|
||||
},
|
||||
|
||||
mdBasses: {
|
||||
title:'Basses',
|
||||
range:'db',
|
||||
target:nmPorts['MonitorsDag'],
|
||||
path:'/strip/Basses/Gain/Gain%20(dB)'
|
||||
},
|
||||
|
||||
mdGuitars: {
|
||||
title:'Guitars',
|
||||
range:'db',
|
||||
target:nmPorts['MonitorsDag'],
|
||||
path:'/strip/Guitars/Gain/Gain%20(dB)'
|
||||
},
|
||||
|
||||
mdMxDrums: {
|
||||
title:'MxDrums',
|
||||
range:'db',
|
||||
target:nmPorts['MonitorsDag'],
|
||||
path:'/strip/MxDrums/Gain/Gain%20(dB)'
|
||||
},
|
||||
|
||||
mdMxSynths: {
|
||||
title:'MxSynths',
|
||||
range:'db',
|
||||
target:nmPorts['MonitorsDag'],
|
||||
path:'/strip/MxSynths/Gain/Gain%20(dB)'
|
||||
},
|
||||
|
||||
mdVocals: {
|
||||
title:'Vocals',
|
||||
range:'db',
|
||||
target:nmPorts['MonitorsDag'],
|
||||
path:'/strip/Vocals/Gain/Gain%20(dB)'
|
||||
},
|
||||
|
||||
mdBassDag: {
|
||||
title:'BassDag',
|
||||
range:'db',
|
||||
target:nmPorts['MonitorsDag'],
|
||||
path:'/strip/BassDag/Gain/Gain%20(dB)'
|
||||
},
|
||||
|
||||
mdGuitarDag: {
|
||||
title:'GuitarDag',
|
||||
range:'db',
|
||||
target:nmPorts['MonitorsDag'],
|
||||
path:'/strip/GuitarDag/Gain/Gain%20(dB)'
|
||||
},
|
||||
|
||||
mdVoixDag: {
|
||||
title:'VoixDag',
|
||||
range:'db',
|
||||
target:nmPorts['MonitorsDag'],
|
||||
path:'/strip/VoixDag/Gain/Gain%20(dB)'
|
||||
},
|
||||
|
||||
mdMetronome: {
|
||||
title:'Metronome',
|
||||
range:'db',
|
||||
target:nmPorts['MonitorsDag'],
|
||||
path:'/strip/Metronome/Gain/Gain%20(dB)'
|
||||
},
|
||||
|
||||
MonitorsDag: {
|
||||
title:'MonitorsDag',
|
||||
range:'db',
|
||||
target:nmPorts['Mains'],
|
||||
path:'/strip/MonitorsDag/Gain/Gain%20(dB)',
|
||||
color:'#777'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
73
monitorsjeannot.js
Normal file
73
monitorsjeannot.js
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
nmPorts = {
|
||||
'MonitorsDag':'SCSon:6675',
|
||||
'MonitorsJeannot':'SCSon:6676',
|
||||
'MonitorsORL':'SCSon:6677',
|
||||
'Mains':'SCSon:6678',
|
||||
}
|
||||
|
||||
TABS = {
|
||||
MonitorsJeannot:{
|
||||
title: 'Monitor Jeannot',
|
||||
|
||||
strips: {
|
||||
|
||||
|
||||
mjDrums: {
|
||||
title:'Drums',
|
||||
range:'db',
|
||||
target:nmPorts['MonitorsJeannot'],
|
||||
path:'/strip/Drums/Gain/Gain%20(dB)'
|
||||
},
|
||||
|
||||
mjBasses: {
|
||||
title:'Basses',
|
||||
range:'db',
|
||||
target:nmPorts['MonitorsJeannot'],
|
||||
path:'/strip/Basses/Gain/Gain%20(dB)'
|
||||
},
|
||||
|
||||
mjGuitars: {
|
||||
title:'Guitars',
|
||||
range:'db',
|
||||
target:nmPorts['MonitorsJeannot'],
|
||||
path:'/strip/Guitars/Gain/Gain%20(dB)'
|
||||
},
|
||||
|
||||
mjMxDrums: {
|
||||
title:'MxDrums',
|
||||
range:'db',
|
||||
target:nmPorts['MonitorsJeannot'],
|
||||
path:'/strip/MxDrums/Gain/Gain%20(dB)'
|
||||
},
|
||||
|
||||
mjMxSynths: {
|
||||
title:'MxSynths',
|
||||
range:'db',
|
||||
target:nmPorts['MonitorsJeannot'],
|
||||
path:'/strip/MxSynths/Gain/Gain%20(dB)'
|
||||
},
|
||||
|
||||
mjVocals: {
|
||||
title:'Vocals',
|
||||
range:'db',
|
||||
target:nmPorts['MonitorsJeannot'],
|
||||
path:'/strip/Vocals/Gain/Gain%20(dB)'
|
||||
},
|
||||
|
||||
mjMetronome: {
|
||||
title:'Metronome',
|
||||
range:'db',
|
||||
target:nmPorts['MonitorsJeannot'],
|
||||
path:'/strip/Metronome/Gain/Gain%20(dB)'
|
||||
},
|
||||
|
||||
MonitorsJeannot: {
|
||||
title:'MonitorsJeannot',
|
||||
range:'db',
|
||||
target:nmPorts['Mains'],
|
||||
path:'/strip/MonitorsJeannot/Gain/Gain%20(dB)',
|
||||
color:'#777'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
93
monitorsorl.js
Normal file
93
monitorsorl.js
Normal file
|
|
@ -0,0 +1,93 @@
|
|||
nmPorts = {
|
||||
'MonitorsDag':'SCSon:6675',
|
||||
'MonitorsJeannot':'SCSon:6676',
|
||||
'MonitorsORL':'SCSon:6677',
|
||||
'Mains':'SCSon:6678',
|
||||
}
|
||||
|
||||
TABS = {
|
||||
MonitorsORL:{
|
||||
title: 'Monitor ORL',
|
||||
|
||||
strips: {
|
||||
|
||||
|
||||
moDrums: {
|
||||
title:'Drums',
|
||||
range:'db',
|
||||
target:nmPorts['MonitorsORL'],
|
||||
path:'/strip/Drums/Gain/Gain%20(dB)'
|
||||
},
|
||||
|
||||
moBasses: {
|
||||
title:'Basses',
|
||||
range:'db',
|
||||
target:nmPorts['MonitorsORL'],
|
||||
path:'/strip/Basses/Gain/Gain%20(dB)'
|
||||
},
|
||||
|
||||
moGuitars: {
|
||||
title:'Guitars',
|
||||
range:'db',
|
||||
target:nmPorts['MonitorsORL'],
|
||||
path:'/strip/Guitars/Gain/Gain%20(dB)'
|
||||
},
|
||||
|
||||
moMxDrums: {
|
||||
title:'MxDrums',
|
||||
range:'db',
|
||||
target:nmPorts['MonitorsORL'],
|
||||
path:'/strip/MxDrums/Gain/Gain%20(dB)'
|
||||
},
|
||||
|
||||
moMxSynths: {
|
||||
title:'MxSynths',
|
||||
range:'db',
|
||||
target:nmPorts['MonitorsORL'],
|
||||
path:'/strip/MxSynths/Gain/Gain%20(dB)'
|
||||
},
|
||||
|
||||
moVocals: {
|
||||
title:'Vocals',
|
||||
range:'db',
|
||||
target:nmPorts['MonitorsORL'],
|
||||
path:'/strip/Vocals/Gain/Gain%20(dB)'
|
||||
},
|
||||
|
||||
moBassORL: {
|
||||
title:'BassORL',
|
||||
range:'db',
|
||||
target:nmPorts['MonitorsORL'],
|
||||
path:'/strip/BassORL/Gain/Gain%20(dB)'
|
||||
},
|
||||
|
||||
moGuitarORL: {
|
||||
title:'GuitarORL',
|
||||
range:'db',
|
||||
target:nmPorts['MonitorsORL'],
|
||||
path:'/strip/GuitarORL/Gain/Gain%20(dB)'
|
||||
},
|
||||
|
||||
moVxORL: {
|
||||
title:'VxORL',
|
||||
range:'db',
|
||||
target:nmPorts['MonitorsORL'],
|
||||
path:'/strip/VxORL/Gain/Gain%20(dB)'
|
||||
},
|
||||
|
||||
moMetronome: {
|
||||
title:'Metronome',
|
||||
range:'db',
|
||||
target:nmPorts['MonitorsORL'],
|
||||
path:'/strip/Metronome/Gain/Gain%20(dB)'
|
||||
},
|
||||
MonitorsORL: {
|
||||
title:'MonitorsORL',
|
||||
range:'db',
|
||||
target:nmPorts['Mains'],
|
||||
path:'/strip/MonitorsORL/Gain/Gain%20(dB)',
|
||||
color:'#777'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
14
orl.py
Normal file
14
orl.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import sys
|
||||
from os import path as os_path
|
||||
sys.path.append(os_path.dirname(os_path.abspath(__file__))+'/lib')
|
||||
from oschtmlgui import oscHtmlGui
|
||||
|
||||
|
||||
gui = oscHtmlGui(
|
||||
port=3333,
|
||||
presetName='sebkhachott',
|
||||
config='monitorsorl.js'
|
||||
)
|
||||
|
||||
|
||||
gui.main()
|
||||
BIN
oschtmlgui.pyc
BIN
oschtmlgui.pyc
Binary file not shown.
185
sebkha.py
185
sebkha.py
|
|
@ -1,183 +1,14 @@
|
|||
import oschtmlgui
|
||||
import sys
|
||||
from os import path as os_path
|
||||
|
||||
#Ports osc des clients NonMixer
|
||||
nmPorts = {
|
||||
'MainMix':'SCSon:6666',
|
||||
'Drums':'SCSon:6667',
|
||||
'Basses':'SCSon:6668',
|
||||
'Guitars':'SCSon:6669',
|
||||
'MxSynths':'SCSon:6670',
|
||||
'MxDrums':'SCSon:6671',
|
||||
'Vocals':'SCSon:6672',
|
||||
'Toms':'SCSon:6673',
|
||||
'Acoustics':'SCSon:6674',
|
||||
'MonitorsDag':'SCSon:6675',
|
||||
'MonitorsJeannot':'SCSon:6676',
|
||||
'MonitorsORL':'SCSon:6677',
|
||||
'Mains':'SCSon:6678',
|
||||
}
|
||||
|
||||
# Patch gui > NonMixer
|
||||
pathPatch = {
|
||||
|
||||
#MainMix
|
||||
'Drums':['/strip/Drums',nmPorts['MainMix']],
|
||||
'Basses':['/strip/Basses',nmPorts['MainMix']],
|
||||
'Guitars':['/strip/Guitars',nmPorts['MainMix']],
|
||||
'MxSynths':['/strip/MxSynths',nmPorts['MainMix']],
|
||||
'MxDrums':['/strip/MxDrums',nmPorts['MainMix']],
|
||||
'Vocals':['/strip/Vocals',nmPorts['MainMix']],
|
||||
'Acoustics':['/strip/Acoustics',nmPorts['MainMix']],
|
||||
|
||||
#Drums
|
||||
'Kick':['/strip/Kick',nmPorts['Drums']],
|
||||
'Snare':['/strip/Snare',nmPorts['Drums']],
|
||||
'Toms':['/strip/Toms',nmPorts['Drums']],
|
||||
'OH-L':['/strip/OH-L',nmPorts['Drums']],
|
||||
'OH-R':['/strip/OH-R',nmPorts['Drums']],
|
||||
|
||||
#Toms
|
||||
'Tom1':['/strip/Tom1',nmPorts['Toms']],
|
||||
'Tom2':['/strip/Tom2',nmPorts['Toms']],
|
||||
'Tom3':['/strip/Tom3',nmPorts['Toms']],
|
||||
|
||||
#Basses
|
||||
'Bass_ORL':['/strip/Bass_ORL',nmPorts['Basses']],
|
||||
'Oct_Bass_ORL':['/strip/Oct_Bass_ORL',nmPorts['Basses']],
|
||||
'FX_Bass_ORL':['/strip/FX_Bass_ORL',nmPorts['Basses']],
|
||||
'Bass_Dag':['/strip/Bass_Dag',nmPorts['Basses']],
|
||||
'Oct_Bass_Dag':['/strip/Oct_Bass_Dag',nmPorts['Basses']],
|
||||
'FX_Bass_Dag':['/strip/FX_Bass_Dag',nmPorts['Basses']],
|
||||
|
||||
#Guitars
|
||||
'Guitar_ORL':['/strip/Guitar_ORL',nmPorts['Guitars']],
|
||||
'FX_Gtr_ORL_1':['/strip/FX_Gtr_ORL_1',nmPorts['Guitars']],
|
||||
'FX_Gtr_ORL_2':['/strip/FX_Gtr_ORL_2',nmPorts['Guitars']],
|
||||
'FX_Gtr_ORL':['/strip/FX_Gtr_ORL',nmPorts['Guitars']],
|
||||
'Guitar_Dag':['/strip/Guitar_Dag',nmPorts['Guitars']],
|
||||
'FX_Gtr_Dag_1':['/strip/FX_Gtr_Dag_1',nmPorts['Guitars']],
|
||||
'FX_Gtr_Dag_2':['/strip/FX_Gtr_Dag_2',nmPorts['Guitars']],
|
||||
'FX_Gtr_Dag':['/strip/FX_Gtr_Dag',nmPorts['Guitars']],
|
||||
'Scape_Gtr_Dag':['/strip/Scape_Gtr_Dag',nmPorts['Guitars']],
|
||||
|
||||
#MxSynths
|
||||
'MxBass':['/strip/MxBass',nmPorts['MxSynths']],
|
||||
'MxChords':['/strip/MxChords',nmPorts['MxSynths']],
|
||||
'MxLead':['/strip/MxLead',nmPorts['MxSynths']],
|
||||
'MxCtLead':['/strip/MxCtLead',nmPorts['MxSynths']],
|
||||
'MxClassical':['/strip/MxClassical',nmPorts['MxSynths']],
|
||||
|
||||
#MxDrums
|
||||
'MxKicks':['/strip/MxKicks',nmPorts['MxDrums']],
|
||||
'MxSnares':['/strip/MxSnares',nmPorts['MxDrums']],
|
||||
'MxCymbs':['/strip/MxCymbs',nmPorts['MxDrums']],
|
||||
'MxCont':['/strip/MxCont',nmPorts['MxDrums']],
|
||||
'MxSamples':['/strip/MxSamples',nmPorts['MxDrums']],
|
||||
|
||||
#Acoustics
|
||||
'PianoToy':['/strip/PianoToy',nmPorts['Acoustics']],
|
||||
'Cymbalum':['/strip/Cymbalum',nmPorts['Acoustics']],
|
||||
'GuitarAc':['/strip/GuitarAc',nmPorts['Acoustics']],
|
||||
|
||||
#Vocals
|
||||
'Vx_ORL':['/strip/Vx_ORL',nmPorts['Vocals']],
|
||||
'FX_Vx_ORL_1':['/strip/FX_Vx_ORL_1',nmPorts['Vocals']],
|
||||
'FX_Vx_ORL_2':['/strip/FX_Vx_ORL_2',nmPorts['Vocals']],
|
||||
'FX_Vx_ORL':['/strip/FX_Vx_ORL',nmPorts['Vocals']],
|
||||
'Vx_Dag':['/strip/Vx_Dag',nmPorts['Vocals']],
|
||||
'FX_Vx_Dag_1':['/strip/FX_Vx_Dag_1',nmPorts['Vocals']],
|
||||
'FX_Vx_Dag_2':['/strip/FX_Vx_Dag_2',nmPorts['Vocals']],
|
||||
'FX_Vx_Dag':['/strip/FX_Vx_Dag',nmPorts['Vocals']],
|
||||
'Scape_Vx_Dag':['/strip/Scape_Vx_Dag',nmPorts['Vocals']],
|
||||
'Vx_Jeannot':['/strip/Vx_Jeannot',nmPorts['Vocals']],
|
||||
|
||||
#Mains
|
||||
'FOH':['/strip/FOH',nmPorts['Mains']],
|
||||
'MonitorsJeannot':['/strip/MonitorsJeannot',nmPorts['Mains']],
|
||||
'MonitorsORL':['/strip/MonitorsORL',nmPorts['Mains']],
|
||||
'MonitorsDag':['/strip/MonitorsDag',nmPorts['Mains']],
|
||||
|
||||
#MonitorsDag
|
||||
'mdDrums':['/strip/Drums',nmPorts['MonitorsDag']],
|
||||
'mdBasses':['/strip/Basses',nmPorts['MonitorsDag']],
|
||||
'mdGuitars':['/strip/Guitars',nmPorts['MonitorsDag']],
|
||||
'mdMxDrums':['/strip/MxDrums',nmPorts['MonitorsDag']],
|
||||
'mdMxSynths':['/strip/MxSynths',nmPorts['MonitorsDag']],
|
||||
'mdVocals':['/strip/Vocals',nmPorts['MonitorsDag']],
|
||||
'mdBassDag':['/strip/BassDag',nmPorts['MonitorsDag']],
|
||||
'mdGuitarDag':['/strip/GuitarDag',nmPorts['MonitorsDag']],
|
||||
'mdVoixDag':['/strip/VoixDag',nmPorts['MonitorsDag']],
|
||||
'mdMetronome':['/strip/Metronome',nmPorts['MonitorsDag']],
|
||||
|
||||
#MonitorsJeannot
|
||||
'mjDrums':['/strip/Drums',nmPorts['MonitorsJeannot']],
|
||||
'mjBasses':['/strip/Basses',nmPorts['MonitorsJeannot']],
|
||||
'mjGuitars':['/strip/Guitars',nmPorts['MonitorsJeannot']],
|
||||
'mjMxDrums':['/strip/MxDrums',nmPorts['MonitorsJeannot']],
|
||||
'mjMxSynths':['/strip/MxSynths',nmPorts['MonitorsJeannot']],
|
||||
'mjVocals':['/strip/Vocals',nmPorts['MonitorsJeannot']],
|
||||
'mjMetronome':['/strip/Metronome',nmPorts['MonitorsJeannot']],
|
||||
|
||||
#MonitorsORL
|
||||
'moDrums':['/strip/Drums',nmPorts['MonitorsORL']],
|
||||
'moBasses':['/strip/Basses',nmPorts['MonitorsORL']],
|
||||
'moGuitars':['/strip/Guitars',nmPorts['MonitorsORL']],
|
||||
'moMxDrums':['/strip/MxDrums',nmPorts['MonitorsORL']],
|
||||
'moMxSynths':['/strip/MxSynths',nmPorts['MonitorsORL']],
|
||||
'moVocals':['/strip/Vocals',nmPorts['MonitorsORL']],
|
||||
'moBassORL':['/strip/BassORL',nmPorts['MonitorsORL']],
|
||||
'moGuitarORL':['/strip/GuitarORL',nmPorts['MonitorsORL']],
|
||||
'moVxORL':['/strip/VxORL',nmPorts['MonitorsORL']],
|
||||
'moMetronome':['/strip/Metronome',nmPorts['MonitorsORL']],
|
||||
}
|
||||
|
||||
#Parametre gui > NonMixer
|
||||
paramPatch = {
|
||||
'Gain':'Gain/Gain%20(dB)',
|
||||
'Pan':'Mono%20Pan/Pan',
|
||||
'Mute':'Gain/Mute',
|
||||
|
||||
|
||||
'EQ_On_1':'4-band%20parametric%20filter/Section%201',
|
||||
'EQ_Gain_1':'4-band%20parametric%20filter/Gain%201',
|
||||
'EQ_Freq_1':'4-band%20parametric%20filter/Frequency%201',
|
||||
'EQ_Band_1':'4-band%20parametric%20filter/Bandwidth%201',
|
||||
|
||||
'EQ_On_2':'4-band%20parametric%20filter/Section%202',
|
||||
'EQ_Gain_2':'4-band%20parametric%20filter/Gain%202',
|
||||
'EQ_Freq_2':'4-band%20parametric%20filter/Frequency%202',
|
||||
'EQ_Band_2':'4-band%20parametric%20filter/Bandwidth%202',
|
||||
|
||||
'EQ_On_3':'4-band%20parametric%20filter/Section%203',
|
||||
'EQ_Gain_3':'4-band%20parametric%20filter/Gain%203',
|
||||
'EQ_Freq_3':'4-band%20parametric%20filter/Frequency%203',
|
||||
'EQ_Band_3':'4-band%20parametric%20filter/Bandwidth%203',
|
||||
|
||||
'EQ_On_4':'4-band%20parametric%20filter/Section%204',
|
||||
'EQ_Gain_4':'4-band%20parametric%20filter/Gain%204',
|
||||
'EQ_Freq_4':'4-band%20parametric%20filter/Frequency%204',
|
||||
'EQ_Band_4':'4-band%20parametric%20filter/Bandwidth%204',
|
||||
|
||||
'LF_Key':'Gate/LF%20key%20filter%20(Hz)',
|
||||
'HF_Key':'Gate/HF%20key%20filter%20(Hz)',
|
||||
'Threshold':'Gate/Threshold%20(dB)',
|
||||
'Attack':'Gate/Attack%20(ms)',
|
||||
'Hold':'Gate/Hold%20(ms)',
|
||||
'Decay':'Gate/Decay%20(ms)',
|
||||
|
||||
}
|
||||
sys.path.append(os_path.dirname(os_path.abspath(__file__))+'/lib')
|
||||
from oschtmlgui import oscHtmlGui
|
||||
|
||||
|
||||
gui = oscHtmlGui(
|
||||
port=3333,
|
||||
presetName='sebkhachott',
|
||||
config='config.js'
|
||||
)
|
||||
|
||||
|
||||
example_path = os_path.dirname(os_path.abspath(__file__)) + '/example/'
|
||||
html_path = example_path + 'sebkha.html'
|
||||
preset_name = example_path + 'sebkha'
|
||||
|
||||
gui = oschtmlgui.oscHtmlGui(port=3333, target='127.0.0.1:3334', appName='oscHtmlGui', presetName=preset_name,html=html_path)
|
||||
|
||||
router = oschtmlgui.oscRouter(port=3334, pathPatch=pathPatch, paramPatch=paramPatch)
|
||||
router.start()
|
||||
|
||||
gui.main()
|
||||
|
|
|
|||
62
sebkhachott.preset
Normal file
62
sebkhachott.preset
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
strip:Drums:0.00
|
||||
strip:Basses:0.00
|
||||
strip:Guitars:0.00
|
||||
strip:MxSynths:0.00
|
||||
strip:MxDrums:0.00
|
||||
strip:Vocals:0.00
|
||||
strip:Acoustics:0.00
|
||||
strip:FOH:0.00
|
||||
strip:Kick:0.00
|
||||
strip:Snare:0.00
|
||||
strip:Toms:0.00
|
||||
strip:OH_L:0.00
|
||||
strip:OH_R:0.00
|
||||
strip:Drums:0.00
|
||||
strip:Tom1:0.00
|
||||
strip:Tom2:0.00
|
||||
strip:Tom3:0.00
|
||||
strip:Toms:0.00
|
||||
strip:Bass_ORL:0.00
|
||||
strip:Oct_Bass_ORL:0.00
|
||||
strip:FX_Bass_ORL:0.00
|
||||
strip:Bass_Dag:0.00
|
||||
strip:Oct_Bass_Dag:0.00
|
||||
strip:FX_Bass_Dag:0.00
|
||||
strip:Basses:0.00
|
||||
strip:Guitar_ORL:0.00
|
||||
strip:FX_Gtr_ORL_1:0.00
|
||||
strip:FX_Gtr_ORL_2:0.00
|
||||
strip:FX_Gtr_ORL:0.00
|
||||
strip:Guitar_Dag:0.00
|
||||
strip:FX_Gtr_Dag_1:0.00
|
||||
strip:FX_Gtr_Dag_2:0.00
|
||||
strip:FX_Gtr_Dag:0.00
|
||||
strip:Scape_Gtr_Dag:0.00
|
||||
strip:Guitars:0.00
|
||||
strip:MxBass:0.00
|
||||
strip:MxChords:0.00
|
||||
strip:MxLead:0.00
|
||||
strip:MxCtLead:0.00
|
||||
strip:MxClassical:0.00
|
||||
strip:MxSynths:0.00
|
||||
strip:MxKicks:0.00
|
||||
strip:MxSnares:0.00
|
||||
strip:MxCymbs:0.00
|
||||
strip:MxCont:0.00
|
||||
strip:MxSamples:0.00
|
||||
strip:MxDrums:0.00
|
||||
strip:PianoToy:0.00
|
||||
strip:Cymbalum:0.00
|
||||
strip:GuitarAc:0.00
|
||||
strip:Acoustics:0.00
|
||||
strip:Vx_ORL:0.00
|
||||
strip:FX_Vx_ORL_1:0.00
|
||||
strip:FX_Vx_ORL_2:0.00
|
||||
strip:FX_Vx_ORL:0.00
|
||||
strip:Vx_Dag:0.00
|
||||
strip:FX_Vx_Dag_1:0.00
|
||||
strip:FX_Vx_Dag_2:0.00
|
||||
strip:FX_Vx_Dag:0.00
|
||||
strip:Scape_Vx_Dag:0.00
|
||||
strip:Vx_Jeannot:0.00
|
||||
strip:Vocals:0.00
|
||||
Loading…
Add table
Add a link
Reference in a new issue