File "init.js"

Full path: E:/sites/Single15/tinmung2007/webroot/A-Doan-sung-dong/Mido-Duy/video-playlist/init.js
File size: 13.35 KiB (13671 bytes)
MIME-type:
Charset: utf-8

Download   Open   Back

/**
* Responsive
* 
* author: Thilo Ilg
* version: 1.1.6
* 
**/

/** 
* --- jAlbumGlobals ---
* jAlbumGlobals is responsible for constant parameter of the skin.
* In the process of creating an album the jAlbum parser will overwrite 
* the variables according to the skin with the selected ones in the
* program. jAlbumGlobals also includes global variables which describe
* the state of the skin like if it is embedded, viewed on a mobile device,
* online or in filesystem etc.
*/
var jAlbumGlobals1621913115919 = (function () {

	var styles = ["dark.css", "light.css", "transparent.css"]; // styles

	var mobile = isMobile(); // is the skin viewed on a mobile device
	var online = isOnline(); // is the skin viewed online or in the filesystem
	var jAlbumURL = getURL(); // what's the current url?

	var stylePath = ""; //path points to the styles folder
	var resPath = ""; // path points to the res folder

	var credits = "Gallery software for photographers"; // should skin show credits in footer
	var albumTitle = "slides"; // what's the album title?
	var contentPath = ""; // path points to the skin folder
	var imgHoverScaleFactor = "scale(1.1)"; // scale factor of hovering an element

	var folderTitleUp = true; // positioning of folder title, under or above folder
	var folderImgCount = false; // says if folder deep count should be shown
	var maxImgInRow = 10; // restricts the number of elements in a row
	var imgBorderSize = 3; // define border size of element
	var imgBoxSize = 175; // defines size of container of element
	var showFolderName = false; // says if folder name should be displayed
	var textSize = 11; // defines text size of whole page
	var showComments = true; // defines if comments should be shown in slideshow
	var slideBorderSize = 0;
	var slideBorderColor = "#ff000000";
	var slideMarginSize = 0; // Margin around full screen image.
	var style = "dark.css";

	var dataTree = {"path":"slides","counters":{"total":12,"images":12,"files":12},"thumb":{"path":"thumbs\/DSC_6942.JPG","width":256,"height":171},"objects":[{"path":"DSC_6942.JPG","image":{"path":"slides\/DSC_6942.JPG","width":1024,"height":683},"thumb":{"path":"thumbs\/DSC_6942.JPG","width":256,"height":171},"fileSize":118967,"name":"DSC_6942.JPG","fileDate":"2019-01-28T15:52:53.748Z","category":"image","camera":{"originalDate":"2019-01-28T15:52:53.748Z"}},{"path":"DSC_6946.JPG","image":{"path":"slides\/DSC_6946.JPG","width":1024,"height":683},"thumb":{"path":"thumbs\/DSC_6946.JPG","width":256,"height":171},"fileSize":133890,"name":"DSC_6946.JPG","fileDate":"2019-01-28T15:52:53.748Z","category":"image","camera":{"originalDate":"2019-01-28T15:52:53.748Z"}},{"path":"DSC_6947.JPG","image":{"path":"slides\/DSC_6947.JPG","width":1024,"height":683},"thumb":{"path":"thumbs\/DSC_6947.JPG","width":256,"height":171},"fileSize":127822,"name":"DSC_6947.JPG","fileDate":"2019-01-28T15:52:53.748Z","category":"image","camera":{"originalDate":"2019-01-28T15:52:53.748Z"}},{"path":"DSC_6943.JPG","image":{"path":"slides\/DSC_6943.JPG","width":1024,"height":683},"thumb":{"path":"thumbs\/DSC_6943.JPG","width":256,"height":171},"fileSize":129860,"name":"DSC_6943.JPG","fileDate":"2019-01-28T15:52:53.861Z","category":"image","camera":{"originalDate":"2019-01-28T15:52:53.861Z"}},{"path":"DSC_6948.JPG","image":{"path":"slides\/DSC_6948.JPG","width":1024,"height":683},"thumb":{"path":"thumbs\/DSC_6948.JPG","width":256,"height":171},"fileSize":124265,"name":"DSC_6948.JPG","fileDate":"2019-01-28T15:52:54.363Z","category":"image","camera":{"originalDate":"2019-01-28T15:52:54.363Z"}},{"path":"DSC_6949.JPG","image":{"path":"slides\/DSC_6949.JPG","width":1024,"height":683},"thumb":{"path":"thumbs\/DSC_6949.JPG","width":256,"height":171},"fileSize":125900,"name":"DSC_6949.JPG","fileDate":"2019-01-28T15:52:54.378Z","category":"image","camera":{"originalDate":"2019-01-28T15:52:54.378Z"}},{"path":"DSC_6951.JPG","image":{"path":"slides\/DSC_6951.JPG","width":1024,"height":683},"thumb":{"path":"thumbs\/DSC_6951.JPG","width":256,"height":171},"fileSize":127666,"name":"DSC_6951.JPG","fileDate":"2019-01-28T15:52:54.394Z","category":"image","camera":{"originalDate":"2019-01-28T15:52:54.394Z"}},{"path":"DSC_6950.JPG","image":{"path":"slides\/DSC_6950.JPG","width":1024,"height":683},"thumb":{"path":"thumbs\/DSC_6950.JPG","width":256,"height":171},"fileSize":133108,"name":"DSC_6950.JPG","fileDate":"2019-01-28T15:52:54.456Z","category":"image","camera":{"originalDate":"2019-01-28T15:52:54.456Z"}},{"path":"DSC_6954.JPG","image":{"path":"slides\/DSC_6954.JPG","width":1024,"height":683},"thumb":{"path":"thumbs\/DSC_6954.JPG","width":256,"height":171},"fileSize":88337,"name":"DSC_6954.JPG","fileDate":"2019-01-28T15:52:54.950Z","category":"image","camera":{"originalDate":"2019-01-28T15:52:54.950Z"}},{"path":"DSC_6955.JPG","image":{"path":"slides\/DSC_6955.JPG","width":1024,"height":683},"thumb":{"path":"thumbs\/DSC_6955.JPG","width":256,"height":171},"fileSize":119087,"name":"DSC_6955.JPG","fileDate":"2019-01-28T15:52:54.950Z","category":"image","camera":{"originalDate":"2019-01-28T15:52:54.950Z"}},{"path":"DSC_6956.JPG","image":{"path":"slides\/DSC_6956.JPG","width":1024,"height":683},"thumb":{"path":"thumbs\/DSC_6956.JPG","width":256,"height":171},"fileSize":114597,"name":"DSC_6956.JPG","fileDate":"2019-01-28T15:52:54.962Z","category":"image","camera":{"originalDate":"2019-01-28T15:52:54.962Z"}},{"path":"DSC_6958.JPG","image":{"path":"slides\/DSC_6958.JPG","width":1024,"height":683},"thumb":{"path":"thumbs\/DSC_6958.JPG","width":256,"height":171},"fileSize":125461,"name":"DSC_6958.JPG","fileDate":"2019-01-28T15:52:55.32Z","category":"image","camera":{"originalDate":"2019-01-28T15:52:55.32Z"}}],"name":"slides","fileDate":"2021-05-25T10:25:15.832Z"}; // includes all the album data in a json tree
	var stylePath = ""; 

	var widgetColor = getWidgetColor(); // get suggested color for widget support

	var uniqueId = new Date().getTime();

	/** check if page viewed on mobile device **/
	function isMobile(){
		return (/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent) 
	    || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4)));
	}

	/** check if page viewed online or from file system **/
	function isOnline(){
		switch(window.location.protocol) {
		   case 'http:':
		   		return true;
		   case 'https:':
		     	return true;
		   case 'file:':
		    	return false;
		}
	}

	/** get current url of page **/
	function getURL(){
		var scripts = document.getElementsByTagName('script');
		for (var index = scripts.length-1; index >= 0; --index) {
			if (scripts[index].id == 'jAlbum') {
				var curr = scripts[index].src;
				return curr.substring(0, curr.lastIndexOf("/") + 1);
			}
		}
		return "";
	}

	/** get fidget color according to current style **/
	function getWidgetColor(){
		if(style == styles[0]) return "black";
		else return "white";
	}

	/** returns all the public variables and functions **/
	return {
		mobile: mobile,
		online: online,
		jAlbumURL: jAlbumURL,
		stylePath: stylePath,
		resPath: resPath,
		credits: credits,
		albumTitle: albumTitle,
		contentPath: contentPath,
		imgHoverScaleFactor: imgHoverScaleFactor,
		folderTitleUp: folderTitleUp,
		folderImgCount: folderImgCount,
		maxImgInRow: maxImgInRow,
		imgBorderSize: imgBorderSize,
		imgBoxSize: imgBoxSize,
		showFolderName: showFolderName,
		textSize: textSize,
		showComments: showComments,
		dataTree: dataTree,
		stylePath: stylePath,
		slideBorderSize: slideBorderSize,
		slideBorderColor: slideBorderColor,
		slideMarginSize: slideMarginSize,
		widgetColor: widgetColor,
		uniqueId: uniqueId
	};

})();

/** --- jAlbumInject ---
* jAlbumInject is responsible for copying html code into
* the website. Stylesheet includes will be printed into
* the header, the body will be printed to the position
* of the embed code.
*/
var jAlbumInject = (function () {

	appendToHead(injLink('res/css/normalize.min.css', 'stylesheet')); // normalizes browser specific stylesheet defaults
	appendToHead(injLink('res/css/custom.css', 'stylesheet')); // customized desgin of the skin, will be partly overwritten by style.css
	appendToHead(injLink('res/styles.css', 'stylesheet')); // different styles to the skin which change the appearance

	appendToHead(injMeta("viewport", "width=device-width, initial-scale=1.0, maximum-scale=1.0")); // viewport handles mobile scaling size

	inj('<div id="Responsive' + jAlbumGlobals1621913115919.uniqueId + '" class="jAlbum Responsive">'); // Responsive id surrounds all code of the body of the skin
	inj('<div id="fullscreen"></div>'); // element where to add fullscreen
	inj('<div id="jAlbum-header"></div>'); // header container
	inj('<div id="jAlbum-content"></div>'); // content container
	inj('<div style="clear: both"></div>');

	inj('<div id="jAlbum-footer">'); // footer
	inj('<div class="left leaveFolder">');
	inj('<p><a onclick="jAlbumController.back();"> &#10096;</a></p>'); // go back button in footer
	inj('</div><div class="center"><p><a href="http://jalbum.net/">Gallery software for photographers</a> - '); // credits in footer
	inj('<a href="http://jalbum.net/skins/skin/Responsive">Responsive</a></p>'); // skin advertisement in footer
	inj('</div></div></div>'); // close footer

	inj('<script src="' + jAlbumGlobals1621913115919.jAlbumURL + 'res/libs/jquery-2.1.4.min.js"></script>'); // embets jQuery library
	inj('<script type="text/javascript">$(document).bind("mobileinit", function(){$.extend($.mobile , {autoInitializePage: false})});</script>'); // deactivates jQuery unnecessary mobile feature
	inj('<script src="' + jAlbumGlobals1621913115919.jAlbumURL + 'res/libs/jquery.mobile-1.4.5.min.js"></script>'); // includes jQuery Mobile
	inj('<script src="' + jAlbumGlobals1621913115919.jAlbumURL + 'res/libs/jquery.touchswipe.min.js"></script>'); // jQuery touchswipe plugin
	inj('<script src="' + jAlbumGlobals1621913115919.jAlbumURL + 'main.js" type="text/javascript"></script>'); // includes skin controller
	
	/** injects html code at embedded position **/
	function inj(html){
		document.write(html);
	}

	/** injects html code in header **/
	function appendToHead(elem){
		document.getElementsByTagName('head').item(0).appendChild(elem);
	}

	/** injects header of embedded page with stylesheet includes **/
	function injLink(path, rel){
		var elem = document.createElement("link");
		elem.href = jAlbumGlobals1621913115919.jAlbumURL + path;
		elem.rel = rel;

		return elem;
	}

	function injMeta(name, content){
		var elem = document.createElement("meta");
		elem.name = name;
		elem.content = content;

		return elem;
	}

})();


/** --- Widget Support---
* provides JavaScript code for jAlbum widget support
*/
window._jaWidgetBarColor = jAlbumGlobals1621913115919.widgetColor;

if(!document.getElementById('non-embedded')){ // check if embedded
	window._jaUrl = jAlbumGlobals1621913115919.jAlbumURL;
	_jaSkin = "Responsive";
_jaStyle = "dark.css";
_jaVersion = "23.2.4";
_jaGeneratorType = "desktop";
_jaLanguage = "en";
_jaPageType = "index";
_jaRootPath = ".";
_jaUserId = "244903";
var jalbumWidgetContainer = document.createElement('div');
jalbumWidgetContainer.setAttribute('id','jalbumwidgetcontainer');
var jalbumWidgetScript = document.createElement("script");
jalbumWidgetScript.type = "text/javascript";
jalbumWidgetScript.src = "http"+("https:"==document.location.protocol?"s":"")+"://jalbum.net/widgetapi/load.js";
jalbumWidgetScript.async = true;
jalbumWidgetContainer.appendChild(jalbumWidgetScript);
document.body.appendChild(jalbumWidgetContainer);
 // get JavaScript code for widget
}

PHP File Manager