39 lines
1.8 KiB
JavaScript
39 lines
1.8 KiB
JavaScript
require(["jquery", "sm/soundmanager2-jsmin", "plugins/jquery.scrollTo-1.4.2-min", "plugins/jquery.disable.text.select.pack",
|
|
"plugins/jquery.cookie", "plugins/jquery.base64", "plugins/jquery.dateFormat-1.0", "plugins/jquery.periodic", "plugins/jquery.shuffle",
|
|
"fancybox/jquery.fancybox-1.3.4.pack",
|
|
"plugins/jquery.linkify-1.0-min", "libs/utils", "libs/api", "libs/generators", "libs/chat", "libs/player", "app", "ui-load", "ui-ready"
|
|
], function($) {
|
|
|
|
$(function() {
|
|
//Sound manager
|
|
soundManager.url = 'js/sm/swf';
|
|
soundManager.preferFlash = false;
|
|
soundManager.debugMode = false;
|
|
//soundManager.flashVersion = 9; // optional: shiny features (default = 8)
|
|
//soundManager.useFlashBlock = false; // optionally, enable when you're ready to dive in
|
|
|
|
//User config staff
|
|
$('#Username').val($.cookie('username'));
|
|
$('#Password').val($.cookie('password'));
|
|
$('#AutoAlbumSize').val($.cookie('AutoAlbumSize'));
|
|
$('#AutoPlaylistSize').val($.cookie('AutoPlaylistSize'));
|
|
$('#Server').val($.cookie('Server'));
|
|
$('#ApplicationName').val($.cookie('ApplicationName'));
|
|
|
|
if ($.cookie('HideAZ')) {
|
|
$('#HideAZ').attr('checked', true);
|
|
} else {
|
|
$('#HideAZ').attr('checked', false);
|
|
}
|
|
if ($.cookie('EnableNotifications')) {
|
|
$('#EnableNotifications').attr('checked', true);
|
|
} else {
|
|
$('#EnableNotifications').attr('checked', false);
|
|
}
|
|
if ($.cookie('ScrollTitle')) {
|
|
$('#ScrollTitle').attr('checked', true);
|
|
} else {
|
|
$('#ScrollTitle').attr('checked', false);
|
|
}
|
|
});
|
|
});
|