first
This commit is contained in:
736
safekiso-server/modules/base/wwwroot/admindek/js/SmoothScroll.js
Normal file
736
safekiso-server/modules/base/wwwroot/admindek/js/SmoothScroll.js
Normal file
@@ -0,0 +1,736 @@
|
||||
//
|
||||
// SmoothScroll for websites v1.4.0 (Balazs Galambosi)
|
||||
// http://www.smoothscroll.net/
|
||||
//
|
||||
// Licensed under the terms of the MIT license.
|
||||
//
|
||||
// You may use it in your theme if you credit me.
|
||||
// It is also free to use on any individual website.
|
||||
//
|
||||
// Exception:
|
||||
// The only restriction is to not publish any
|
||||
// extension for browsers or native application
|
||||
// without getting a written permission first.
|
||||
//
|
||||
|
||||
(function() {
|
||||
|
||||
// Scroll Variables (tweakable)
|
||||
var defaultOptions = {
|
||||
|
||||
// Scrolling Core
|
||||
frameRate: 150, // [Hz]
|
||||
animationTime: 400, // [ms]
|
||||
stepSize: 100, // [px]
|
||||
|
||||
// Pulse (less tweakable)
|
||||
// ratio of "tail" to "acceleration"
|
||||
pulseAlgorithm: true,
|
||||
pulseScale: 4,
|
||||
pulseNormalize: 1,
|
||||
|
||||
// Acceleration
|
||||
accelerationDelta: 50, // 50
|
||||
accelerationMax: 3, // 3
|
||||
|
||||
// Keyboard Settings
|
||||
keyboardSupport: true, // option
|
||||
arrowScroll: 50, // [px]
|
||||
|
||||
// Other
|
||||
touchpadSupport: false, // ignore touchpad by default
|
||||
fixedBackground: true,
|
||||
excluded: ''
|
||||
};
|
||||
|
||||
var options = defaultOptions;
|
||||
|
||||
|
||||
// Other Variables
|
||||
var isExcluded = false;
|
||||
var isFrame = false;
|
||||
var direction = {
|
||||
x: 0,
|
||||
y: 0
|
||||
};
|
||||
var initDone = false;
|
||||
var root = document.documentElement;
|
||||
var activeElement;
|
||||
var observer;
|
||||
var refreshSize;
|
||||
var deltaBuffer = [];
|
||||
var isMac = /^Mac/.test(navigator.platform);
|
||||
|
||||
var key = {
|
||||
left: 37,
|
||||
up: 38,
|
||||
right: 39,
|
||||
down: 40,
|
||||
spacebar: 32,
|
||||
pageup: 33,
|
||||
pagedown: 34,
|
||||
end: 35,
|
||||
home: 36
|
||||
};
|
||||
|
||||
|
||||
/***********************************************
|
||||
* INITIALIZE
|
||||
***********************************************/
|
||||
|
||||
/**
|
||||
* Tests if smooth scrolling is allowed. Shuts down everything if not.
|
||||
*/
|
||||
function initTest() {
|
||||
if (options.keyboardSupport) {
|
||||
addEvent('keydown', keydown);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets up scrolls array, determines if frames are involved.
|
||||
*/
|
||||
function init() {
|
||||
|
||||
if (initDone || !document.body) return;
|
||||
|
||||
initDone = true;
|
||||
|
||||
var body = document.body;
|
||||
var html = document.documentElement;
|
||||
var windowHeight = window.innerHeight;
|
||||
var scrollHeight = body.scrollHeight;
|
||||
|
||||
// check compat mode for root element
|
||||
root = (document.compatMode.indexOf('CSS') >= 0) ? html : body;
|
||||
activeElement = body;
|
||||
|
||||
initTest();
|
||||
|
||||
// Checks if this script is running in a frame
|
||||
if (top != self) {
|
||||
isFrame = true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Please duplicate this radar for a Safari fix!
|
||||
* rdar://22376037
|
||||
* https://openradar.appspot.com/radar?id=4965070979203072
|
||||
*
|
||||
* Only applies to Safari now, Chrome fixed it in v45:
|
||||
* This fixes a bug where the areas left and right to
|
||||
* the content does not trigger the onmousewheel event
|
||||
* on some pages. e.g.: html, body { height: 100% }
|
||||
*/
|
||||
else if (scrollHeight > windowHeight &&
|
||||
(body.offsetHeight <= windowHeight ||
|
||||
html.offsetHeight <= windowHeight)) {
|
||||
|
||||
var fullPageElem = document.createElement('div');
|
||||
fullPageElem.style.cssText = 'position:absolute; z-index:-10000; ' +
|
||||
'top:0; left:0; right:0; height:' +
|
||||
root.scrollHeight + 'px';
|
||||
document.body.appendChild(fullPageElem);
|
||||
|
||||
// DOM changed (throttled) to fix height
|
||||
var pendingRefresh;
|
||||
refreshSize = function() {
|
||||
if (pendingRefresh) return; // could also be: clearTimeout(pendingRefresh);
|
||||
pendingRefresh = setTimeout(function() {
|
||||
if (isExcluded) return; // could be running after cleanup
|
||||
fullPageElem.style.height = '0';
|
||||
fullPageElem.style.height = root.scrollHeight + 'px';
|
||||
pendingRefresh = null;
|
||||
}, 500); // act rarely to stay fast
|
||||
};
|
||||
|
||||
setTimeout(refreshSize, 10);
|
||||
|
||||
addEvent('resize', refreshSize);
|
||||
|
||||
// TODO: attributeFilter?
|
||||
var config = {
|
||||
attributes: true,
|
||||
childList: true,
|
||||
characterData: false
|
||||
// subtree: true
|
||||
};
|
||||
|
||||
observer = new MutationObserver(refreshSize);
|
||||
observer.observe(body, config);
|
||||
|
||||
if (root.offsetHeight <= windowHeight) {
|
||||
var clearfix = document.createElement('div');
|
||||
clearfix.style.clear = 'both';
|
||||
body.appendChild(clearfix);
|
||||
}
|
||||
}
|
||||
|
||||
// disable fixed background
|
||||
if (!options.fixedBackground && !isExcluded) {
|
||||
body.style.backgroundAttachment = 'scroll';
|
||||
html.style.backgroundAttachment = 'scroll';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes event listeners and other traces left on the page.
|
||||
*/
|
||||
function cleanup() {
|
||||
observer && observer.disconnect();
|
||||
removeEvent(wheelEvent, wheel);
|
||||
removeEvent('mousedown', mousedown);
|
||||
removeEvent('keydown', keydown);
|
||||
removeEvent('resize', refreshSize);
|
||||
removeEvent('load', init);
|
||||
}
|
||||
|
||||
|
||||
/************************************************
|
||||
* SCROLLING
|
||||
************************************************/
|
||||
|
||||
var que = [];
|
||||
var pending = false;
|
||||
var lastScroll = Date.now();
|
||||
|
||||
/**
|
||||
* Pushes scroll actions to the scrolling queue.
|
||||
*/
|
||||
function scrollArray(elem, left, top) {
|
||||
|
||||
directionCheck(left, top);
|
||||
|
||||
if (options.accelerationMax != 1) {
|
||||
var now = Date.now();
|
||||
var elapsed = now - lastScroll;
|
||||
if (elapsed < options.accelerationDelta) {
|
||||
var factor = (1 + (50 / elapsed)) / 2;
|
||||
if (factor > 1) {
|
||||
factor = Math.min(factor, options.accelerationMax);
|
||||
left *= factor;
|
||||
top *= factor;
|
||||
}
|
||||
}
|
||||
lastScroll = Date.now();
|
||||
}
|
||||
|
||||
// push a scroll command
|
||||
que.push({
|
||||
x: left,
|
||||
y: top,
|
||||
lastX: (left < 0) ? 0.99 : -0.99,
|
||||
lastY: (top < 0) ? 0.99 : -0.99,
|
||||
start: Date.now()
|
||||
});
|
||||
|
||||
// don't act if there's a pending queue
|
||||
if (pending) {
|
||||
return;
|
||||
}
|
||||
|
||||
var scrollWindow = (elem === document.body);
|
||||
|
||||
var step = function(time) {
|
||||
|
||||
var now = Date.now();
|
||||
var scrollX = 0;
|
||||
var scrollY = 0;
|
||||
|
||||
for (var i = 0; i < que.length; i++) {
|
||||
|
||||
var item = que[i];
|
||||
var elapsed = now - item.start;
|
||||
var finished = (elapsed >= options.animationTime);
|
||||
|
||||
// scroll position: [0, 1]
|
||||
var position = (finished) ? 1 : elapsed / options.animationTime;
|
||||
|
||||
// easing [optional]
|
||||
if (options.pulseAlgorithm) {
|
||||
position = pulse(position);
|
||||
}
|
||||
|
||||
// only need the difference
|
||||
var x = (item.x * position - item.lastX) >> 0;
|
||||
var y = (item.y * position - item.lastY) >> 0;
|
||||
|
||||
// add this to the total scrolling
|
||||
scrollX += x;
|
||||
scrollY += y;
|
||||
|
||||
// update last values
|
||||
item.lastX += x;
|
||||
item.lastY += y;
|
||||
|
||||
// delete and step back if it's over
|
||||
if (finished) {
|
||||
que.splice(i, 1);
|
||||
i--;
|
||||
}
|
||||
}
|
||||
|
||||
// scroll left and top
|
||||
if (scrollWindow) {
|
||||
window.scrollBy(scrollX, scrollY);
|
||||
} else {
|
||||
if (scrollX) elem.scrollLeft += scrollX;
|
||||
if (scrollY) elem.scrollTop += scrollY;
|
||||
}
|
||||
|
||||
// clean up if there's nothing left to do
|
||||
if (!left && !top) {
|
||||
que = [];
|
||||
}
|
||||
|
||||
if (que.length) {
|
||||
requestFrame(step, elem, (1000 / options.frameRate + 1));
|
||||
} else {
|
||||
pending = false;
|
||||
}
|
||||
};
|
||||
|
||||
// start a new queue of actions
|
||||
requestFrame(step, elem, 0);
|
||||
pending = true;
|
||||
}
|
||||
|
||||
|
||||
/***********************************************
|
||||
* EVENTS
|
||||
***********************************************/
|
||||
|
||||
/**
|
||||
* Mouse wheel handler.
|
||||
* @param {Object} event
|
||||
*/
|
||||
function wheel(event) {
|
||||
|
||||
if (!initDone) {
|
||||
init();
|
||||
}
|
||||
|
||||
var target = event.target;
|
||||
var overflowing = overflowingAncestor(target);
|
||||
|
||||
// use default if there's no overflowing
|
||||
// element or default action is prevented
|
||||
// or it's a zooming event with CTRL
|
||||
if (!overflowing || event.defaultPrevented || event.ctrlKey) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// leave embedded content alone (flash & pdf)
|
||||
if (isNodeName(activeElement, 'embed') ||
|
||||
(isNodeName(target, 'embed') && /\.pdf/i.test(target.src)) ||
|
||||
isNodeName(activeElement, 'object')) {
|
||||
return true;
|
||||
}
|
||||
|
||||
var deltaX = -event.wheelDeltaX || event.deltaX || 0;
|
||||
var deltaY = -event.wheelDeltaY || event.deltaY || 0;
|
||||
|
||||
if (isMac) {
|
||||
if (event.wheelDeltaX && isDivisible(event.wheelDeltaX, 120)) {
|
||||
deltaX = -120 * (event.wheelDeltaX / Math.abs(event.wheelDeltaX));
|
||||
}
|
||||
if (event.wheelDeltaY && isDivisible(event.wheelDeltaY, 120)) {
|
||||
deltaY = -120 * (event.wheelDeltaY / Math.abs(event.wheelDeltaY));
|
||||
}
|
||||
}
|
||||
|
||||
// use wheelDelta if deltaX/Y is not available
|
||||
if (!deltaX && !deltaY) {
|
||||
deltaY = -event.wheelDelta || 0;
|
||||
}
|
||||
|
||||
// line based scrolling (Firefox mostly)
|
||||
if (event.deltaMode === 1) {
|
||||
deltaX *= 40;
|
||||
deltaY *= 40;
|
||||
}
|
||||
|
||||
// check if it's a touchpad scroll that should be ignored
|
||||
if (!options.touchpadSupport && isTouchpad(deltaY)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// scale by step size
|
||||
// delta is 120 most of the time
|
||||
// synaptics seems to send 1 sometimes
|
||||
if (Math.abs(deltaX) > 1.2) {
|
||||
deltaX *= options.stepSize / 120;
|
||||
}
|
||||
if (Math.abs(deltaY) > 1.2) {
|
||||
deltaY *= options.stepSize / 120;
|
||||
}
|
||||
|
||||
scrollArray(overflowing, deltaX, deltaY);
|
||||
event.preventDefault();
|
||||
scheduleClearCache();
|
||||
}
|
||||
|
||||
/**
|
||||
* Keydown event handler.
|
||||
* @param {Object} event
|
||||
*/
|
||||
function keydown(event) {
|
||||
|
||||
var target = event.target;
|
||||
var modifier = event.ctrlKey || event.altKey || event.metaKey ||
|
||||
(event.shiftKey && event.keyCode !== key.spacebar);
|
||||
|
||||
// our own tracked active element could've been removed from the DOM
|
||||
if (!document.contains(activeElement)) {
|
||||
activeElement = document.activeElement;
|
||||
}
|
||||
|
||||
// do nothing if user is editing text
|
||||
// or using a modifier key (except shift)
|
||||
// or in a dropdown
|
||||
// or inside interactive elements
|
||||
var inputNodeNames = /^(textarea|select|embed|object)$/i;
|
||||
var buttonTypes = /^(button|submit|radio|checkbox|file|color|image)$/i;
|
||||
if (inputNodeNames.test(target.nodeName) ||
|
||||
isNodeName(target, 'input') && !buttonTypes.test(target.type) ||
|
||||
isNodeName(activeElement, 'video') ||
|
||||
isInsideYoutubeVideo(event) ||
|
||||
target.isContentEditable ||
|
||||
event.defaultPrevented ||
|
||||
modifier) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// spacebar should trigger button press
|
||||
if ((isNodeName(target, 'button') ||
|
||||
isNodeName(target, 'input') && buttonTypes.test(target.type)) &&
|
||||
event.keyCode === key.spacebar) {
|
||||
return true;
|
||||
}
|
||||
|
||||
var shift, x = 0,
|
||||
y = 0;
|
||||
var elem = overflowingAncestor(activeElement);
|
||||
var clientHeight = elem.clientHeight;
|
||||
|
||||
if (elem == document.body) {
|
||||
clientHeight = window.innerHeight;
|
||||
}
|
||||
|
||||
switch (event.keyCode) {
|
||||
case key.up:
|
||||
y = -options.arrowScroll;
|
||||
break;
|
||||
case key.down:
|
||||
y = options.arrowScroll;
|
||||
break;
|
||||
case key.spacebar: // (+ shift)
|
||||
shift = event.shiftKey ? 1 : -1;
|
||||
y = -shift * clientHeight * 0.9;
|
||||
break;
|
||||
case key.pageup:
|
||||
y = -clientHeight * 0.9;
|
||||
break;
|
||||
case key.pagedown:
|
||||
y = clientHeight * 0.9;
|
||||
break;
|
||||
case key.home:
|
||||
y = -elem.scrollTop;
|
||||
break;
|
||||
case key.end:
|
||||
var damt = elem.scrollHeight - elem.scrollTop - clientHeight;
|
||||
y = (damt > 0) ? damt + 10 : 0;
|
||||
break;
|
||||
case key.left:
|
||||
x = -options.arrowScroll;
|
||||
break;
|
||||
case key.right:
|
||||
x = options.arrowScroll;
|
||||
break;
|
||||
default:
|
||||
return true; // a key we don't care about
|
||||
}
|
||||
|
||||
scrollArray(elem, x, y);
|
||||
event.preventDefault();
|
||||
scheduleClearCache();
|
||||
}
|
||||
|
||||
/**
|
||||
* Mousedown event only for updating activeElement
|
||||
*/
|
||||
function mousedown(event) {
|
||||
activeElement = event.target;
|
||||
}
|
||||
|
||||
|
||||
/***********************************************
|
||||
* OVERFLOW
|
||||
***********************************************/
|
||||
|
||||
var uniqueID = (function() {
|
||||
var i = 0;
|
||||
return function(el) {
|
||||
return el.uniqueID || (el.uniqueID = i++);
|
||||
};
|
||||
})();
|
||||
|
||||
var cache = {}; // cleared out after a scrolling session
|
||||
var clearCacheTimer;
|
||||
|
||||
//setInterval(function () { cache = {}; }, 10 * 1000);
|
||||
|
||||
function scheduleClearCache() {
|
||||
clearTimeout(clearCacheTimer);
|
||||
clearCacheTimer = setInterval(function() {
|
||||
cache = {};
|
||||
}, 1 * 1000);
|
||||
}
|
||||
|
||||
function setCache(elems, overflowing) {
|
||||
for (var i = elems.length; i--;)
|
||||
cache[uniqueID(elems[i])] = overflowing;
|
||||
return overflowing;
|
||||
}
|
||||
|
||||
// (body) (root)
|
||||
// | hidden | visible | scroll | auto |
|
||||
// hidden | no | no | YES | YES |
|
||||
// visible | no | YES | YES | YES |
|
||||
// scroll | no | YES | YES | YES |
|
||||
// auto | no | YES | YES | YES |
|
||||
|
||||
function overflowingAncestor(el) {
|
||||
var elems = [];
|
||||
var body = document.body;
|
||||
var rootScrollHeight = root.scrollHeight;
|
||||
do {
|
||||
var cached = cache[uniqueID(el)];
|
||||
if (cached) {
|
||||
return setCache(elems, cached);
|
||||
}
|
||||
elems.push(el);
|
||||
if (rootScrollHeight === el.scrollHeight) {
|
||||
var topOverflowsNotHidden = overflowNotHidden(root) && overflowNotHidden(body);
|
||||
var isOverflowCSS = topOverflowsNotHidden || overflowAutoOrScroll(root);
|
||||
if (isFrame && isContentOverflowing(root) ||
|
||||
!isFrame && isOverflowCSS) {
|
||||
return setCache(elems, getScrollRoot());
|
||||
}
|
||||
} else if (isContentOverflowing(el) && overflowAutoOrScroll(el)) {
|
||||
return setCache(elems, el);
|
||||
}
|
||||
} while (el = el.parentElement);
|
||||
}
|
||||
|
||||
function isContentOverflowing(el) {
|
||||
return (el.clientHeight + 10 < el.scrollHeight);
|
||||
}
|
||||
|
||||
// typically for <body> and <html>
|
||||
function overflowNotHidden(el) {
|
||||
var overflow = getComputedStyle(el, '').getPropertyValue('overflow-y');
|
||||
return (overflow !== 'hidden');
|
||||
}
|
||||
|
||||
// for all other elements
|
||||
function overflowAutoOrScroll(el) {
|
||||
var overflow = getComputedStyle(el, '').getPropertyValue('overflow-y');
|
||||
return (overflow === 'scroll' || overflow === 'auto');
|
||||
}
|
||||
|
||||
|
||||
/***********************************************
|
||||
* HELPERS
|
||||
***********************************************/
|
||||
|
||||
function addEvent(type, fn) {
|
||||
window.addEventListener(type, fn, false);
|
||||
}
|
||||
|
||||
function removeEvent(type, fn) {
|
||||
window.removeEventListener(type, fn, false);
|
||||
}
|
||||
|
||||
function isNodeName(el, tag) {
|
||||
return (el.nodeName || '').toLowerCase() === tag.toLowerCase();
|
||||
}
|
||||
|
||||
function directionCheck(x, y) {
|
||||
x = (x > 0) ? 1 : -1;
|
||||
y = (y > 0) ? 1 : -1;
|
||||
if (direction.x !== x || direction.y !== y) {
|
||||
direction.x = x;
|
||||
direction.y = y;
|
||||
que = [];
|
||||
lastScroll = 0;
|
||||
}
|
||||
}
|
||||
|
||||
var deltaBufferTimer;
|
||||
|
||||
if (window.localStorage && localStorage.SS_deltaBuffer) {
|
||||
deltaBuffer = localStorage.SS_deltaBuffer.split(',');
|
||||
}
|
||||
|
||||
function isTouchpad(deltaY) {
|
||||
if (!deltaY) return;
|
||||
if (!deltaBuffer.length) {
|
||||
deltaBuffer = [deltaY, deltaY, deltaY];
|
||||
}
|
||||
deltaY = Math.abs(deltaY)
|
||||
deltaBuffer.push(deltaY);
|
||||
deltaBuffer.shift();
|
||||
clearTimeout(deltaBufferTimer);
|
||||
deltaBufferTimer = setTimeout(function() {
|
||||
if (window.localStorage) {
|
||||
localStorage.SS_deltaBuffer = deltaBuffer.join(',');
|
||||
}
|
||||
}, 1000);
|
||||
return !allDeltasDivisableBy(120) && !allDeltasDivisableBy(100);
|
||||
}
|
||||
|
||||
function isDivisible(n, divisor) {
|
||||
return (Math.floor(n / divisor) == n / divisor);
|
||||
}
|
||||
|
||||
function allDeltasDivisableBy(divisor) {
|
||||
return (isDivisible(deltaBuffer[0], divisor) &&
|
||||
isDivisible(deltaBuffer[1], divisor) &&
|
||||
isDivisible(deltaBuffer[2], divisor));
|
||||
}
|
||||
|
||||
function isInsideYoutubeVideo(event) {
|
||||
var elem = event.target;
|
||||
var isControl = false;
|
||||
if (document.URL.indexOf('www.youtube.com/watch') != -1) {
|
||||
do {
|
||||
isControl = (elem.classList &&
|
||||
elem.classList.contains('html5-video-controls'));
|
||||
if (isControl) break;
|
||||
} while (elem = elem.parentNode);
|
||||
}
|
||||
return isControl;
|
||||
}
|
||||
|
||||
var requestFrame = (function() {
|
||||
return (window.requestAnimationFrame ||
|
||||
window.webkitRequestAnimationFrame ||
|
||||
window.mozRequestAnimationFrame ||
|
||||
function(callback, element, delay) {
|
||||
window.setTimeout(callback, delay || (1000 / 60));
|
||||
});
|
||||
})();
|
||||
|
||||
var MutationObserver = (window.MutationObserver ||
|
||||
window.WebKitMutationObserver ||
|
||||
window.MozMutationObserver);
|
||||
|
||||
var getScrollRoot = (function() {
|
||||
var SCROLL_ROOT;
|
||||
return function() {
|
||||
if (!SCROLL_ROOT) {
|
||||
var dummy = document.createElement('div');
|
||||
dummy.style.cssText = 'height:10000px;width:1px;';
|
||||
document.body.appendChild(dummy);
|
||||
var bodyScrollTop = document.body.scrollTop;
|
||||
var docElScrollTop = document.documentElement.scrollTop;
|
||||
window.scrollBy(0, 3);
|
||||
if (document.body.scrollTop != bodyScrollTop)
|
||||
(SCROLL_ROOT = document.body);
|
||||
else
|
||||
(SCROLL_ROOT = document.documentElement);
|
||||
window.scrollBy(0, -3);
|
||||
document.body.removeChild(dummy);
|
||||
}
|
||||
return SCROLL_ROOT;
|
||||
};
|
||||
})();
|
||||
|
||||
|
||||
/***********************************************
|
||||
* PULSE (by Michael Herf)
|
||||
***********************************************/
|
||||
|
||||
/**
|
||||
* Viscous fluid with a pulse for part and decay for the rest.
|
||||
* - Applies a fixed force over an interval (a damped acceleration), and
|
||||
* - Lets the exponential bleed away the velocity over a longer interval
|
||||
* - Michael Herf, http://stereopsis.com/stopping/
|
||||
*/
|
||||
function pulse_(x) {
|
||||
var val, start, expx;
|
||||
// test
|
||||
x = x * options.pulseScale;
|
||||
if (x < 1) { // acceleartion
|
||||
val = x - (1 - Math.exp(-x));
|
||||
} else { // tail
|
||||
// the previous animation ended here:
|
||||
start = Math.exp(-1);
|
||||
// simple viscous drag
|
||||
x -= 1;
|
||||
expx = 1 - Math.exp(-x);
|
||||
val = start + (expx * (1 - start));
|
||||
}
|
||||
return val * options.pulseNormalize;
|
||||
}
|
||||
|
||||
function pulse(x) {
|
||||
if (x >= 1) return 1;
|
||||
if (x <= 0) return 0;
|
||||
|
||||
if (options.pulseNormalize == 1) {
|
||||
options.pulseNormalize /= pulse_(1);
|
||||
}
|
||||
return pulse_(x);
|
||||
}
|
||||
|
||||
|
||||
/***********************************************
|
||||
* FIRST RUN
|
||||
***********************************************/
|
||||
|
||||
var userAgent = window.navigator.userAgent;
|
||||
var isEdge = /Edge/.test(userAgent); // thank you MS
|
||||
var isChrome = /chrome/i.test(userAgent) && !isEdge;
|
||||
var isSafari = /safari/i.test(userAgent) && !isEdge;
|
||||
var isMobile = /mobile/i.test(userAgent);
|
||||
var isEnabledForBrowser = (isChrome || isSafari) && !isMobile;
|
||||
|
||||
var wheelEvent;
|
||||
if ('onwheel' in document.createElement('div'))
|
||||
wheelEvent = 'wheel';
|
||||
else if ('onmousewheel' in document.createElement('div'))
|
||||
wheelEvent = 'mousewheel';
|
||||
|
||||
if (wheelEvent && isEnabledForBrowser) {
|
||||
addEvent(wheelEvent, wheel);
|
||||
addEvent('mousedown', mousedown);
|
||||
addEvent('load', init);
|
||||
}
|
||||
|
||||
|
||||
/***********************************************
|
||||
* PUBLIC INTERFACE
|
||||
***********************************************/
|
||||
|
||||
function SmoothScroll(optionsToSet) {
|
||||
for (var key in optionsToSet)
|
||||
if (defaultOptions.hasOwnProperty(key))
|
||||
options[key] = optionsToSet[key];
|
||||
}
|
||||
SmoothScroll.destroy = cleanup;
|
||||
|
||||
if (window.SmoothScrollOptions) // async API
|
||||
SmoothScroll(window.SmoothScrollOptions)
|
||||
|
||||
if (typeof define === 'function' && define.amd)
|
||||
define(function() {
|
||||
return SmoothScroll;
|
||||
});
|
||||
else if ('object' == typeof exports)
|
||||
module.exports = SmoothScroll;
|
||||
else
|
||||
window.SmoothScroll = SmoothScroll;
|
||||
|
||||
})();
|
||||
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
$(document).ready(function(){
|
||||
$('.js--triggerAnimation').on('click',function(e){
|
||||
e.preventDefault();
|
||||
var anim = $('.js--animations').val();
|
||||
testAnim(anim);
|
||||
});
|
||||
|
||||
$('.js--animations').on('change',function(){
|
||||
var anim = $(this).val();
|
||||
testAnim(anim);
|
||||
});
|
||||
|
||||
function testAnim(x) {
|
||||
$('#animationSandbox').removeClass().addClass(x + ' animated').one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function(){
|
||||
$(this).removeClass();
|
||||
});
|
||||
};
|
||||
});
|
||||
2
safekiso-server/modules/base/wwwroot/admindek/js/bootstrap-growl.min.js
vendored
Normal file
2
safekiso-server/modules/base/wwwroot/admindek/js/bootstrap-growl.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
80
safekiso-server/modules/base/wwwroot/admindek/js/classie.js
Normal file
80
safekiso-server/modules/base/wwwroot/admindek/js/classie.js
Normal file
@@ -0,0 +1,80 @@
|
||||
/*!
|
||||
* classie - class helper functions
|
||||
* from bonzo https://github.com/ded/bonzo
|
||||
*
|
||||
* classie.has( elem, 'my-class' ) -> true/false
|
||||
* classie.add( elem, 'my-new-class' )
|
||||
* classie.remove( elem, 'my-unwanted-class' )
|
||||
* classie.toggle( elem, 'my-class' )
|
||||
*/
|
||||
|
||||
/*jshint browser: true, strict: true, undef: true */
|
||||
/*global define: false */
|
||||
|
||||
( function( window ) {
|
||||
|
||||
'use strict';
|
||||
|
||||
// class helper functions from bonzo https://github.com/ded/bonzo
|
||||
|
||||
function classReg( className ) {
|
||||
return new RegExp("(^|\\s+)" + className + "(\\s+|$)");
|
||||
}
|
||||
|
||||
// classList support for class management
|
||||
// altho to be fair, the api because it won't accept multiple classes at once
|
||||
var hasClass, addClass, removeClass;
|
||||
|
||||
if ( 'classList' in document.documentElement ) {
|
||||
hasClass = function( elem, c ) {
|
||||
return elem.classList.contains( c );
|
||||
};
|
||||
addClass = function( elem, c ) {
|
||||
elem.classList.add( c );
|
||||
};
|
||||
removeClass = function( elem, c ) {
|
||||
elem.classList.remove( c );
|
||||
};
|
||||
}
|
||||
else {
|
||||
hasClass = function( elem, c ) {
|
||||
return classReg( c ).test( elem.className );
|
||||
};
|
||||
addClass = function( elem, c ) {
|
||||
if ( !hasClass( elem, c ) ) {
|
||||
elem.className = elem.className + ' ' + c;
|
||||
}
|
||||
};
|
||||
removeClass = function( elem, c ) {
|
||||
elem.className = elem.className.replace( classReg( c ), ' ' );
|
||||
};
|
||||
}
|
||||
|
||||
function toggleClass( elem, c ) {
|
||||
var fn = hasClass( elem, c ) ? removeClass : addClass;
|
||||
fn( elem, c );
|
||||
}
|
||||
|
||||
var classie = {
|
||||
// full names
|
||||
hasClass: hasClass,
|
||||
addClass: addClass,
|
||||
removeClass: removeClass,
|
||||
toggleClass: toggleClass,
|
||||
// short names
|
||||
has: hasClass,
|
||||
add: addClass,
|
||||
remove: removeClass,
|
||||
toggle: toggleClass
|
||||
};
|
||||
|
||||
// transport
|
||||
if ( typeof define === 'function' && define.amd ) {
|
||||
// AMD
|
||||
define( classie );
|
||||
} else {
|
||||
// browser global
|
||||
window.classie = classie;
|
||||
}
|
||||
|
||||
})( window );
|
||||
8
safekiso-server/modules/base/wwwroot/admindek/js/cleave.min.js
vendored
Normal file
8
safekiso-server/modules/base/wwwroot/admindek/js/cleave.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -0,0 +1,2 @@
|
||||
"use strict";$(document).ready(function(){Waves.init();Waves.attach('.flat-buttons',['waves-button']);Waves.attach('.float-buttons',['waves-button','waves-float']);Waves.attach('.float-button-light',['waves-button','waves-float','waves-light']);Waves.attach('.flat-buttons',['waves-button','waves-float','waves-light','flat-buttons']);$(document).ready(function(){$(".header-notification").click(function(){$(this).find(".show-notification").slideToggle(500);$(this).toggleClass('active');});});$(document).on("click",function(event){var $trigger=$(".header-notification");if($trigger!==event.target&&!$trigger.has(event.target).length){$(".show-notification").slideUp(300);$(".header-notification").removeClass('active');}});$('.theme-loader').animate({'opacity':'0',},1200);setTimeout(function(){$('.theme-loader').remove();},2000);$('.form-control').on('blur',function(){if($(this).val().length>0){$(this).addClass("fill");}else{$(this).removeClass("fill");}});$('.form-control').on('focus',function(){$(this).addClass("fill");});});function toggleFullScreen(){var a=$(window).height()-10;if(!document.fullscreenElement&&!document.mozFullScreenElement&&!document.webkitFullscreenElement){if(document.documentElement.requestFullscreen){document.documentElement.requestFullscreen();}else if(document.documentElement.mozRequestFullScreen){document.documentElement.mozRequestFullScreen();}else if(document.documentElement.webkitRequestFullscreen){document.documentElement.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT);}}else{if(document.cancelFullScreen){document.cancelFullScreen();}else if(document.mozCancelFullScreen){document.mozCancelFullScreen();}else if(document.webkitCancelFullScreen){document.webkitCancelFullScreen();}}
|
||||
$('.full-screen').toggleClass('icon-maximize');$('.full-screen').toggleClass('icon-minimize');}
|
||||
@@ -0,0 +1,8 @@
|
||||
"use strict";
|
||||
$(document).ready(function() {
|
||||
// card js start
|
||||
console.log('huk document ready...')
|
||||
});
|
||||
|
||||
$(document).ready(function() {
|
||||
});
|
||||
1379
safekiso-server/modules/base/wwwroot/admindek/js/jquery.mCustomScrollbar.concat.min.js
vendored
Normal file
1379
safekiso-server/modules/base/wwwroot/admindek/js/jquery.mCustomScrollbar.concat.min.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
19
safekiso-server/modules/base/wwwroot/admindek/js/jquery.mask.min.js
vendored
Normal file
19
safekiso-server/modules/base/wwwroot/admindek/js/jquery.mask.min.js
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
// jQuery Mask Plugin v1.14.16
|
||||
// github.com/igorescobar/jQuery-Mask-Plugin
|
||||
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,n,f){a instanceof String&&(a=String(a));for(var p=a.length,k=0;k<p;k++){var b=a[k];if(n.call(f,b,k,a))return{i:k,v:b}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;
|
||||
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,n,f){a!=Array.prototype&&a!=Object.prototype&&(a[n]=f.value)};$jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};$jscomp.global=$jscomp.getGlobal(this);
|
||||
$jscomp.polyfill=function(a,n,f,p){if(n){f=$jscomp.global;a=a.split(".");for(p=0;p<a.length-1;p++){var k=a[p];k in f||(f[k]={});f=f[k]}a=a[a.length-1];p=f[a];n=n(p);n!=p&&null!=n&&$jscomp.defineProperty(f,a,{configurable:!0,writable:!0,value:n})}};$jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,f){return $jscomp.findInternal(this,a,f).v}},"es6","es3");
|
||||
(function(a,n,f){"function"===typeof define&&define.amd?define(["jquery"],a):"object"===typeof exports&&"undefined"===typeof Meteor?module.exports=a(require("jquery")):a(n||f)})(function(a){var n=function(b,d,e){var c={invalid:[],getCaret:function(){try{var a=0,r=b.get(0),h=document.selection,d=r.selectionStart;if(h&&-1===navigator.appVersion.indexOf("MSIE 10")){var e=h.createRange();e.moveStart("character",-c.val().length);a=e.text.length}else if(d||"0"===d)a=d;return a}catch(C){}},setCaret:function(a){try{if(b.is(":focus")){var c=
|
||||
b.get(0);if(c.setSelectionRange)c.setSelectionRange(a,a);else{var g=c.createTextRange();g.collapse(!0);g.moveEnd("character",a);g.moveStart("character",a);g.select()}}}catch(B){}},events:function(){b.on("keydown.mask",function(a){b.data("mask-keycode",a.keyCode||a.which);b.data("mask-previus-value",b.val());b.data("mask-previus-caret-pos",c.getCaret());c.maskDigitPosMapOld=c.maskDigitPosMap}).on(a.jMaskGlobals.useInput?"input.mask":"keyup.mask",c.behaviour).on("paste.mask drop.mask",function(){setTimeout(function(){b.keydown().keyup()},
|
||||
100)}).on("change.mask",function(){b.data("changed",!0)}).on("blur.mask",function(){f===c.val()||b.data("changed")||b.trigger("change");b.data("changed",!1)}).on("blur.mask",function(){f=c.val()}).on("focus.mask",function(b){!0===e.selectOnFocus&&a(b.target).select()}).on("focusout.mask",function(){e.clearIfNotMatch&&!k.test(c.val())&&c.val("")})},getRegexMask:function(){for(var a=[],b,c,e,t,f=0;f<d.length;f++)(b=l.translation[d.charAt(f)])?(c=b.pattern.toString().replace(/.{1}$|^.{1}/g,""),e=b.optional,
|
||||
(b=b.recursive)?(a.push(d.charAt(f)),t={digit:d.charAt(f),pattern:c}):a.push(e||b?c+"?":c)):a.push(d.charAt(f).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"));a=a.join("");t&&(a=a.replace(new RegExp("("+t.digit+"(.*"+t.digit+")?)"),"($1)?").replace(new RegExp(t.digit,"g"),t.pattern));return new RegExp(a)},destroyEvents:function(){b.off("input keydown keyup paste drop blur focusout ".split(" ").join(".mask "))},val:function(a){var c=b.is("input")?"val":"text";if(0<arguments.length){if(b[c]()!==a)b[c](a);
|
||||
c=b}else c=b[c]();return c},calculateCaretPosition:function(a){var d=c.getMasked(),h=c.getCaret();if(a!==d){var e=b.data("mask-previus-caret-pos")||0;d=d.length;var g=a.length,f=a=0,l=0,k=0,m;for(m=h;m<d&&c.maskDigitPosMap[m];m++)f++;for(m=h-1;0<=m&&c.maskDigitPosMap[m];m--)a++;for(m=h-1;0<=m;m--)c.maskDigitPosMap[m]&&l++;for(m=e-1;0<=m;m--)c.maskDigitPosMapOld[m]&&k++;h>g?h=10*d:e>=h&&e!==g?c.maskDigitPosMapOld[h]||(e=h,h=h-(k-l)-a,c.maskDigitPosMap[h]&&(h=e)):h>e&&(h=h+(l-k)+f)}return h},behaviour:function(d){d=
|
||||
d||window.event;c.invalid=[];var e=b.data("mask-keycode");if(-1===a.inArray(e,l.byPassKeys)){e=c.getMasked();var h=c.getCaret(),g=b.data("mask-previus-value")||"";setTimeout(function(){c.setCaret(c.calculateCaretPosition(g))},a.jMaskGlobals.keyStrokeCompensation);c.val(e);c.setCaret(h);return c.callbacks(d)}},getMasked:function(a,b){var h=[],f=void 0===b?c.val():b+"",g=0,k=d.length,n=0,p=f.length,m=1,r="push",u=-1,w=0;b=[];if(e.reverse){r="unshift";m=-1;var x=0;g=k-1;n=p-1;var A=function(){return-1<
|
||||
g&&-1<n}}else x=k-1,A=function(){return g<k&&n<p};for(var z;A();){var y=d.charAt(g),v=f.charAt(n),q=l.translation[y];if(q)v.match(q.pattern)?(h[r](v),q.recursive&&(-1===u?u=g:g===x&&g!==u&&(g=u-m),x===u&&(g-=m)),g+=m):v===z?(w--,z=void 0):q.optional?(g+=m,n-=m):q.fallback?(h[r](q.fallback),g+=m,n-=m):c.invalid.push({p:n,v:v,e:q.pattern}),n+=m;else{if(!a)h[r](y);v===y?(b.push(n),n+=m):(z=y,b.push(n+w),w++);g+=m}}a=d.charAt(x);k!==p+1||l.translation[a]||h.push(a);h=h.join("");c.mapMaskdigitPositions(h,
|
||||
b,p);return h},mapMaskdigitPositions:function(a,b,d){a=e.reverse?a.length-d:0;c.maskDigitPosMap={};for(d=0;d<b.length;d++)c.maskDigitPosMap[b[d]+a]=1},callbacks:function(a){var g=c.val(),h=g!==f,k=[g,a,b,e],l=function(a,b,c){"function"===typeof e[a]&&b&&e[a].apply(this,c)};l("onChange",!0===h,k);l("onKeyPress",!0===h,k);l("onComplete",g.length===d.length,k);l("onInvalid",0<c.invalid.length,[g,a,b,c.invalid,e])}};b=a(b);var l=this,f=c.val(),k;d="function"===typeof d?d(c.val(),void 0,b,e):d;l.mask=
|
||||
d;l.options=e;l.remove=function(){var a=c.getCaret();l.options.placeholder&&b.removeAttr("placeholder");b.data("mask-maxlength")&&b.removeAttr("maxlength");c.destroyEvents();c.val(l.getCleanVal());c.setCaret(a);return b};l.getCleanVal=function(){return c.getMasked(!0)};l.getMaskedVal=function(a){return c.getMasked(!1,a)};l.init=function(g){g=g||!1;e=e||{};l.clearIfNotMatch=a.jMaskGlobals.clearIfNotMatch;l.byPassKeys=a.jMaskGlobals.byPassKeys;l.translation=a.extend({},a.jMaskGlobals.translation,e.translation);
|
||||
l=a.extend(!0,{},l,e);k=c.getRegexMask();if(g)c.events(),c.val(c.getMasked());else{e.placeholder&&b.attr("placeholder",e.placeholder);b.data("mask")&&b.attr("autocomplete","off");g=0;for(var f=!0;g<d.length;g++){var h=l.translation[d.charAt(g)];if(h&&h.recursive){f=!1;break}}f&&b.attr("maxlength",d.length).data("mask-maxlength",!0);c.destroyEvents();c.events();g=c.getCaret();c.val(c.getMasked());c.setCaret(g)}};l.init(!b.is("input"))};a.maskWatchers={};var f=function(){var b=a(this),d={},e=b.attr("data-mask");
|
||||
b.attr("data-mask-reverse")&&(d.reverse=!0);b.attr("data-mask-clearifnotmatch")&&(d.clearIfNotMatch=!0);"true"===b.attr("data-mask-selectonfocus")&&(d.selectOnFocus=!0);if(p(b,e,d))return b.data("mask",new n(this,e,d))},p=function(b,d,e){e=e||{};var c=a(b).data("mask"),f=JSON.stringify;b=a(b).val()||a(b).text();try{return"function"===typeof d&&(d=d(b)),"object"!==typeof c||f(c.options)!==f(e)||c.mask!==d}catch(w){}},k=function(a){var b=document.createElement("div");a="on"+a;var e=a in b;e||(b.setAttribute(a,
|
||||
"return;"),e="function"===typeof b[a]);return e};a.fn.mask=function(b,d){d=d||{};var e=this.selector,c=a.jMaskGlobals,f=c.watchInterval;c=d.watchInputs||c.watchInputs;var k=function(){if(p(this,b,d))return a(this).data("mask",new n(this,b,d))};a(this).each(k);e&&""!==e&&c&&(clearInterval(a.maskWatchers[e]),a.maskWatchers[e]=setInterval(function(){a(document).find(e).each(k)},f));return this};a.fn.masked=function(a){return this.data("mask").getMaskedVal(a)};a.fn.unmask=function(){clearInterval(a.maskWatchers[this.selector]);
|
||||
delete a.maskWatchers[this.selector];return this.each(function(){var b=a(this).data("mask");b&&b.remove().removeData("mask")})};a.fn.cleanVal=function(){return this.data("mask").getCleanVal()};a.applyDataMask=function(b){b=b||a.jMaskGlobals.maskElements;(b instanceof a?b:a(b)).filter(a.jMaskGlobals.dataMaskAttr).each(f)};k={maskElements:"input,td,span,div",dataMaskAttr:"*[data-mask]",dataMask:!0,watchInterval:300,watchInputs:!0,keyStrokeCompensation:10,useInput:!/Chrome\/[2-4][0-9]|SamsungBrowser/.test(window.navigator.userAgent)&&
|
||||
k("input"),watchDataMask:!1,byPassKeys:[9,16,17,18,36,37,38,39,40,91],translation:{0:{pattern:/\d/},9:{pattern:/\d/,optional:!0},"#":{pattern:/\d/,recursive:!0},A:{pattern:/[a-zA-Z0-9]/},S:{pattern:/[a-zA-Z]/}}};a.jMaskGlobals=a.jMaskGlobals||{};k=a.jMaskGlobals=a.extend(!0,{},k,a.jMaskGlobals);k.dataMask&&a.applyDataMask();setInterval(function(){a.jMaskGlobals.watchDataMask&&a.applyDataMask()},k.watchInterval)},window.jQuery,window.Zepto);
|
||||
8
safekiso-server/modules/base/wwwroot/admindek/js/jquery.mousewheel.min.js
vendored
Normal file
8
safekiso-server/modules/base/wwwroot/admindek/js/jquery.mousewheel.min.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*!
|
||||
* jQuery Mousewheel 3.1.13
|
||||
*
|
||||
* Copyright 2015 jQuery Foundation and other contributors
|
||||
* Released under the MIT license.
|
||||
* http://jquery.org/license
|
||||
*/
|
||||
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheelDelta"in g&&(m=g.wheelDelta),"wheelDeltaY"in g&&(m=g.wheelDeltaY),"wheelDeltaX"in g&&(l=-1*g.wheelDeltaX),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY"in g&&(m=-1*g.deltaY,j=m),"deltaX"in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b),d=c["offsetParent"in a.fn?"offsetParent":"parent"]();return d.length||(d=a("body")),parseInt(d.css("fontSize"),10)||parseInt(c.css("fontSize"),10)||16},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})});
|
||||
@@ -0,0 +1,181 @@
|
||||
(function($, window, document, undefined) {
|
||||
$.fn.quicksearch = function (target, opt) {
|
||||
|
||||
var timeout, cache, rowcache, jq_results, val = '', e = this, options = $.extend({
|
||||
delay: 100,
|
||||
selector: null,
|
||||
stripeRows: null,
|
||||
loader: null,
|
||||
noResults: '',
|
||||
matchedResultsCount: 0,
|
||||
bind: 'keyup',
|
||||
onBefore: function () {
|
||||
return;
|
||||
},
|
||||
onAfter: function () {
|
||||
return;
|
||||
},
|
||||
show: function () {
|
||||
this.style.display = "";
|
||||
},
|
||||
hide: function () {
|
||||
this.style.display = "none";
|
||||
},
|
||||
prepareQuery: function (val) {
|
||||
return val.toLowerCase().split(' ');
|
||||
},
|
||||
testQuery: function (query, txt, _row) {
|
||||
for (var i = 0; i < query.length; i += 1) {
|
||||
if (txt.indexOf(query[i]) === -1) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}, opt);
|
||||
|
||||
this.go = function () {
|
||||
|
||||
var i = 0,
|
||||
numMatchedRows = 0,
|
||||
noresults = true,
|
||||
query = options.prepareQuery(val),
|
||||
val_empty = (val.replace(' ', '').length === 0);
|
||||
|
||||
for (var i = 0, len = rowcache.length; i < len; i++) {
|
||||
if (val_empty || options.testQuery(query, cache[i], rowcache[i])) {
|
||||
options.show.apply(rowcache[i]);
|
||||
noresults = false;
|
||||
numMatchedRows++;
|
||||
} else {
|
||||
options.hide.apply(rowcache[i]);
|
||||
}
|
||||
}
|
||||
|
||||
if (noresults) {
|
||||
this.results(false);
|
||||
} else {
|
||||
this.results(true);
|
||||
this.stripe();
|
||||
}
|
||||
|
||||
this.matchedResultsCount = numMatchedRows;
|
||||
this.loader(false);
|
||||
options.onAfter();
|
||||
|
||||
return this;
|
||||
};
|
||||
|
||||
/*
|
||||
* External API so that users can perform search programatically.
|
||||
* */
|
||||
this.search = function (submittedVal) {
|
||||
val = submittedVal;
|
||||
e.trigger();
|
||||
};
|
||||
|
||||
/*
|
||||
* External API to get the number of matched results as seen in
|
||||
* https://github.com/ruiz107/quicksearch/commit/f78dc440b42d95ce9caed1d087174dd4359982d6
|
||||
* */
|
||||
this.currentMatchedResults = function() {
|
||||
return this.matchedResultsCount;
|
||||
};
|
||||
|
||||
this.stripe = function () {
|
||||
|
||||
if (typeof options.stripeRows === "object" && options.stripeRows !== null)
|
||||
{
|
||||
var joined = options.stripeRows.join(' ');
|
||||
var stripeRows_length = options.stripeRows.length;
|
||||
|
||||
jq_results.not(':hidden').each(function (i) {
|
||||
$(this).removeClass(joined).addClass(options.stripeRows[i % stripeRows_length]);
|
||||
});
|
||||
}
|
||||
|
||||
return this;
|
||||
};
|
||||
|
||||
this.strip_html = function (input) {
|
||||
var output = input.replace(new RegExp('<[^<]+\>', 'g'), "");
|
||||
output = $.trim(output.toLowerCase());
|
||||
return output;
|
||||
};
|
||||
|
||||
this.results = function (bool) {
|
||||
if (typeof options.noResults === "string" && options.noResults !== "") {
|
||||
if (bool) {
|
||||
$(options.noResults).hide();
|
||||
} else {
|
||||
$(options.noResults).show();
|
||||
}
|
||||
}
|
||||
return this;
|
||||
};
|
||||
|
||||
this.loader = function (bool) {
|
||||
if (typeof options.loader === "string" && options.loader !== "") {
|
||||
(bool) ? $(options.loader).show() : $(options.loader).hide();
|
||||
}
|
||||
return this;
|
||||
};
|
||||
|
||||
this.cache = function () {
|
||||
|
||||
jq_results = $(target);
|
||||
|
||||
if (typeof options.noResults === "string" && options.noResults !== "") {
|
||||
jq_results = jq_results.not(options.noResults);
|
||||
}
|
||||
|
||||
var t = (typeof options.selector === "string") ? jq_results.find(options.selector) : $(target).not(options.noResults);
|
||||
cache = t.map(function () {
|
||||
return e.strip_html(this.innerHTML);
|
||||
});
|
||||
|
||||
rowcache = jq_results.map(function () {
|
||||
return this;
|
||||
});
|
||||
|
||||
/*
|
||||
* Modified fix for sync-ing "val".
|
||||
* Original fix https://github.com/michaellwest/quicksearch/commit/4ace4008d079298a01f97f885ba8fa956a9703d1
|
||||
* */
|
||||
val = val || this.val() || "";
|
||||
|
||||
return this.go();
|
||||
};
|
||||
|
||||
this.trigger = function () {
|
||||
this.loader(true);
|
||||
options.onBefore();
|
||||
|
||||
window.clearTimeout(timeout);
|
||||
timeout = window.setTimeout(function () {
|
||||
e.go();
|
||||
}, options.delay);
|
||||
|
||||
return this;
|
||||
};
|
||||
|
||||
this.cache();
|
||||
this.results(true);
|
||||
this.stripe();
|
||||
this.loader(false);
|
||||
|
||||
return this.each(function () {
|
||||
|
||||
/*
|
||||
* Changed from .bind to .on.
|
||||
* */
|
||||
$(this).on(options.bind, function () {
|
||||
|
||||
val = $(this).val();
|
||||
e.trigger();
|
||||
});
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
}(jQuery, this, document));
|
||||
99
safekiso-server/modules/base/wwwroot/admindek/js/modal.js
Normal file
99
safekiso-server/modules/base/wwwroot/admindek/js/modal.js
Normal file
@@ -0,0 +1,99 @@
|
||||
'use strict';
|
||||
$(document).ready(function () {
|
||||
//Basic alert
|
||||
document.querySelector('.sweet-1').onclick = function(){
|
||||
swal("Here's a message!", "It's pretty, isn't it?")
|
||||
};
|
||||
//success message
|
||||
document.querySelector('.alert-success-msg').onclick = function(){
|
||||
swal("Good job!", "You clicked the button!", "success");
|
||||
};
|
||||
|
||||
//Alert confirm
|
||||
document.querySelector('.alert-confirm').onclick = function(){
|
||||
swal({
|
||||
title: "Are you sure?",
|
||||
text: "Your will not be able to recover this imaginary file!",
|
||||
type: "warning",
|
||||
showCancelButton: true,
|
||||
confirmButtonClass: "btn-danger",
|
||||
confirmButtonText: "Yes, delete it!",
|
||||
closeOnConfirm: false
|
||||
},
|
||||
function(){
|
||||
swal("Deleted!", "Your imaginary file has been deleted.", "success");
|
||||
});
|
||||
};
|
||||
|
||||
//Success or cancel alert
|
||||
document.querySelector('.alert-success-cancel').onclick = function(){
|
||||
swal({
|
||||
title: "Are you sure?",
|
||||
text: "You will not be able to recover this imaginary file!",
|
||||
type: "warning",
|
||||
showCancelButton: true,
|
||||
confirmButtonClass: "btn-danger",
|
||||
confirmButtonText: "Yes, delete it!",
|
||||
cancelButtonText: "No, cancel plx!",
|
||||
closeOnConfirm: false,
|
||||
closeOnCancel: false
|
||||
},
|
||||
function(isConfirm) {
|
||||
if (isConfirm) {
|
||||
swal("Deleted!", "Your imaginary file has been deleted.", "success");
|
||||
} else {
|
||||
swal("Cancelled", "Your imaginary file is safe :)", "error");
|
||||
}
|
||||
});
|
||||
};
|
||||
//prompt alert
|
||||
document.querySelector('.alert-prompt').onclick = function(){
|
||||
swal({
|
||||
title: "An input!",
|
||||
text: "Write something interesting:",
|
||||
type: "input",
|
||||
showCancelButton: true,
|
||||
closeOnConfirm: false,
|
||||
inputPlaceholder: "Write something"
|
||||
}, function (inputValue) {
|
||||
if (inputValue === false) return false;
|
||||
if (inputValue === "") {
|
||||
swal.showInputError("You need to write something!");
|
||||
return false
|
||||
}
|
||||
swal("Nice!", "You wrote: " + inputValue, "success");
|
||||
});
|
||||
};
|
||||
|
||||
//Ajax alert
|
||||
document.querySelector('.alert-ajax').onclick = function(){
|
||||
swal({
|
||||
title: "Ajax request example",
|
||||
text: "Submit to run ajax request",
|
||||
type: "info",
|
||||
showCancelButton: true,
|
||||
closeOnConfirm: false,
|
||||
showLoaderOnConfirm: true
|
||||
}, function () {
|
||||
setTimeout(function () {
|
||||
swal("Ajax request finished!");
|
||||
}, 2000);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
$('#openBtn').on('click',function () {
|
||||
$('#myModal').modal({
|
||||
show: true
|
||||
})
|
||||
});
|
||||
|
||||
$(document).on('show.bs.modal', '.modal', function (event) {
|
||||
var zIndex = 1040 + (10 * $('.modal:visible').length);
|
||||
$(this).css('z-index', zIndex);
|
||||
setTimeout(function() {
|
||||
$('.modal-backdrop').not('.modal-stack').css('z-index', zIndex - 1).addClass('modal-stack');
|
||||
}, 0);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
/**
|
||||
* modalEffects.js v1.0.0
|
||||
* http://www.codrops.com
|
||||
*
|
||||
* Licensed under the MIT license.
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
*
|
||||
* Copyright 2013, Codrops
|
||||
* http://www.codrops.com
|
||||
*/
|
||||
var ModalEffects = (function() {
|
||||
|
||||
function init() {
|
||||
|
||||
var overlay = document.querySelector( '.md-overlay' );
|
||||
|
||||
[].slice.call( document.querySelectorAll( '.md-trigger' ) ).forEach( function( el, i ) {
|
||||
|
||||
var modal = document.querySelector( '#' + el.getAttribute( 'data-modal' ) ),
|
||||
close = modal.querySelector( '.md-close' );
|
||||
|
||||
function removeModal( hasPerspective ) {
|
||||
classie.remove( modal, 'md-show' );
|
||||
|
||||
if( hasPerspective ) {
|
||||
classie.remove( document.documentElement, 'md-perspective' );
|
||||
}
|
||||
}
|
||||
|
||||
function removeModalHandler() {
|
||||
removeModal( classie.has( el, 'md-setperspective' ) );
|
||||
}
|
||||
|
||||
el.addEventListener( 'click', function( ev ) {
|
||||
classie.add( modal, 'md-show' );
|
||||
overlay.removeEventListener( 'click', removeModalHandler );
|
||||
overlay.addEventListener( 'click', removeModalHandler );
|
||||
|
||||
if( classie.has( el, 'md-setperspective' ) ) {
|
||||
setTimeout( function() {
|
||||
classie.add( document.documentElement, 'md-perspective' );
|
||||
}, 25 );
|
||||
}
|
||||
});
|
||||
|
||||
close.addEventListener( 'click', function( ev ) {
|
||||
ev.stopPropagation();
|
||||
removeModalHandler();
|
||||
});
|
||||
|
||||
} );
|
||||
|
||||
}
|
||||
|
||||
init();
|
||||
|
||||
})();
|
||||
1
safekiso-server/modules/base/wwwroot/admindek/js/moment.min.js
vendored
Normal file
1
safekiso-server/modules/base/wwwroot/admindek/js/moment.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -0,0 +1,19 @@
|
||||
$(document).ready(function() {
|
||||
setTimeout(function(){
|
||||
$('.carousel-nav').owlCarousel({
|
||||
items:1,
|
||||
loop:true,
|
||||
autoplay:true,
|
||||
nav:true
|
||||
});
|
||||
|
||||
|
||||
$('.carousel-dot').owlCarousel({
|
||||
items:1,
|
||||
loop:true,
|
||||
autoplay:true,
|
||||
nav:false
|
||||
});
|
||||
|
||||
},350);
|
||||
});
|
||||
525
safekiso-server/modules/base/wwwroot/admindek/js/pcoded.min.js
vendored
Normal file
525
safekiso-server/modules/base/wwwroot/admindek/js/pcoded.min.js
vendored
Normal file
@@ -0,0 +1,525 @@
|
||||
$.fn.pcodedmenu = function(e) {
|
||||
var t = this.attr("id"),
|
||||
a = {
|
||||
themelayout: "vertical",
|
||||
MenuTrigger: "click",
|
||||
SubMenuTrigger: "click",
|
||||
activeMenuClass: "active",
|
||||
ThemeBackgroundPattern: "pattern6",
|
||||
HeaderBackground: "theme4",
|
||||
LHeaderBackground: "theme4",
|
||||
NavbarBackground: "theme4",
|
||||
ActiveItemBackground: "theme0",
|
||||
SubItemBackground: "theme4",
|
||||
LogoTheme: "theme6",
|
||||
ActiveItemStyle: "style0",
|
||||
freamtype: "theme1",
|
||||
ItemBorderStyle: "solid",
|
||||
SubItemBorder: !0,
|
||||
DropDownIconStyle: "style1",
|
||||
FixedNavbarPosition: !1,
|
||||
FixedHeaderPosition: !1,
|
||||
horizontalMenuplacement: "top",
|
||||
horizontalMenulayout: "widebox",
|
||||
horizontalBrandItem: !0,
|
||||
horizontalLeftNavItem: !0,
|
||||
horizontalRightItem: !1,
|
||||
horizontalSearchItem: !1,
|
||||
horizontalBrandItemAlign: "left",
|
||||
horizontalLeftNavItemAlign: "right",
|
||||
horizontalRightItemAlign: "right",
|
||||
horizontalsearchItemAlign: "right",
|
||||
horizontalstickynavigation: !1,
|
||||
horizontalNavigationView: "view1",
|
||||
horizontalNavIsCentered: !1,
|
||||
horizontalNavigationMenuIcon: !0,
|
||||
layouttype: "light",
|
||||
verticalMenuplacement: "left",
|
||||
verticalMenulayout: "wide",
|
||||
collapseVerticalLeftHeader: !0,
|
||||
VerticalSubMenuItemIconStyle: "style6",
|
||||
VerticalNavigationView: "view1",
|
||||
verticalMenueffect: {
|
||||
desktop: "shrink",
|
||||
tablet: "push",
|
||||
phone: "overlay"
|
||||
},
|
||||
defaultVerticalMenu: {
|
||||
desktop: "expanded",
|
||||
tablet: "collapsed",
|
||||
phone: "offcanvas"
|
||||
},
|
||||
onToggleVerticalMenu: {
|
||||
desktop: "collapsed",
|
||||
tablet: "expanded",
|
||||
phone: "expanded"
|
||||
}
|
||||
},
|
||||
e = $.extend({}, a, e),
|
||||
o = {
|
||||
PcodedMenuInit: function() {
|
||||
o.Handlethemelayout(), o.HandleverticalMenuplacement(), o.HandlehorizontalMenuplacement(), o.HandleMenulayout(), o.HandleDeviceType(), o.Handlecomponetheight(), o.HandleMenuOnClick(), o.HandleMenuTrigger(), o.HandleSubMenuTrigger(), o.HandleActiveItem(), o.HandleOffcanvasMenu(), o.HandleVerticalLeftHeader(), o.HandleThemeBackground(), o.HandleActiveItemStyle(), o.HandleItemBorder(), o.HandleBorderStyle(), o.HandleSubItemBorder(), o.HandleDropDownIconStyle(), o.HandleOptionSelectorPanel(), o.HandleNavbarPosition(), o.HandleVerticalSubMenuItemIconStyle(), o.HandleVerticalNavigationView(), o.HandleHorizontalItemIsCentered(), o.HandleHorizontalItemAlignment(), o.HandleSubMenuOffset(), o.HandleHorizontalStickyNavigation(), o.HandleDocumentClickEvent(), o.HandleVerticalScrollbar(), o.HandleHorizontalMobileMenuToggle(), o.horizontalNavigationMenuIcon(), o.verticalNavigationSearchBar(), o.safariBrowsercompatibility(), o.Handlemenutype(), o.Handlelayoutvartype()
|
||||
},
|
||||
safariBrowsercompatibility: function() {
|
||||
is_chrome = navigator.userAgent.indexOf("Chrome") > -1, is_explorer = navigator.userAgent.indexOf("MSIE") > -1, is_firefox = navigator.userAgent.indexOf("Firefox") > -1, is_safari = navigator.userAgent.indexOf("Safari") > -1, is_opera = navigator.userAgent.indexOf("Presto") > -1, is_mac = -1 != navigator.userAgent.indexOf("Mac OS"), is_windows = !is_mac, is_chrome && is_safari && (is_safari = !1), is_safari || is_windows
|
||||
},
|
||||
verticalNavigationSearchBar: function() {
|
||||
"vertical" === e.themelayout && $(".searchbar-toggle").on("click", function() {
|
||||
$(this).parent(".pcoded-search").toggleClass("open")
|
||||
})
|
||||
},
|
||||
horizontalNavigationMenuIcon: function() {
|
||||
if ("horizontal" === e.themelayout) switch (e.horizontalNavigationMenuIcon) {
|
||||
case !1:
|
||||
$("#" + t + ".pcoded .pcoded-navbar .pcoded-item > li > a .pcoded-micon").hide(), $("#" + t + ".pcoded .pcoded-navbar .pcoded-item.pcoded-search-item > li > a .pcoded-micon").show()
|
||||
}
|
||||
},
|
||||
HandleHorizontalMobileMenuToggle: function() {
|
||||
"horizontal" === e.themelayout && $("#mobile-collapse,#mobile-collapse1").on("click", function() {
|
||||
$(".pcoded-navbar").toggleClass("show-menu")
|
||||
})
|
||||
},
|
||||
HandleVerticalScrollbar: function() {
|
||||
"vertical" === e.themelayout && (satnt = e.defaultVerticalMenu.desktop, "expanded" !== satnt && "compact" !== satnt || (mt = e.MenuTrigger, "click" === mt && $("#mobile-collapse,#mobile-collapse1").click(function(e) {
|
||||
e.preventDefault();
|
||||
var t = $(this);
|
||||
rel = t.attr("rel"), el = $(".pcoded-navbar"), "collapsed" == $("#pcoded").attr("vertical-nav-type") ? ($(".main-menu").slimScroll({
|
||||
destroy: !0
|
||||
}), $(".main-menu").css("overflow", "visible")) : $(".main-menu").slimScroll({
|
||||
setTop: "1px",
|
||||
size: "5px",
|
||||
wheelStep: 10,
|
||||
alwaysVisible: !0,
|
||||
allowPageScroll: !0,
|
||||
height: "100%",
|
||||
width: "100%"
|
||||
})
|
||||
}), $(".main-menu").slimScroll({
|
||||
setTop: "1px",
|
||||
size: "5px",
|
||||
wheelStep: 10,
|
||||
alwaysVisible: !0,
|
||||
allowPageScroll: !0,
|
||||
height: "100%",
|
||||
width: "100%"
|
||||
})))
|
||||
},
|
||||
HandleDocumentClickEvent: function() {
|
||||
! function() {
|
||||
$(document).on("click", function(e) {
|
||||
var a = $(e.target),
|
||||
o = $("#" + t).attr("pcoded-device-type"),
|
||||
i = $("#" + t).attr("vertical-nav-type"),
|
||||
d = $("#" + t).attr("theme-layout"),
|
||||
n = $("#" + t + " .pcoded-item li");
|
||||
a.parents(".pcoded-item").length || "phone" != o && "horizontal" != d && "expanded" != i && ($(".pcoded-submenu").slideUp(), setTimeout(function() {
|
||||
n.removeClass("pcoded-trigger")
|
||||
}, 400))
|
||||
})
|
||||
}(),
|
||||
function() {
|
||||
$(document).on("click", function(e) {
|
||||
var a = $(e.target),
|
||||
o = $("#" + t + " .pcoded-search");
|
||||
a.parents(".pcoded-search").length || o.removeClass("open")
|
||||
})
|
||||
}()
|
||||
},
|
||||
HandleHorizontalStickyNavigation: function() {
|
||||
switch (e.horizontalstickynavigation) {
|
||||
case !0:
|
||||
$(window).on("scroll", function() {
|
||||
var e = $(this).scrollTop();
|
||||
e >= 100 ? ($(".pcoded-navbar").addClass("stickybar"), $("stickybar").fadeIn(3e3)) : e <= 100 && ($(".pcoded-navbar").removeClass("stickybar"), $(".stickybar").fadeOut(3e3))
|
||||
});
|
||||
break;
|
||||
case !1:
|
||||
$(".pcoded-navbar").removeClass("stickybar")
|
||||
}
|
||||
},
|
||||
HandleSubMenuOffset: function() {
|
||||
switch (e.themelayout) {
|
||||
case "horizontal":
|
||||
"hover" === e.SubMenuTrigger ? $("li.pcoded-hasmenu").on("mouseenter mouseleave", function(e) {
|
||||
if ($(".pcoded-submenu", this).length) {
|
||||
var t = $(".pcoded-submenu:first", this),
|
||||
a = t.offset(),
|
||||
o = a.left,
|
||||
i = t.width();
|
||||
$(window).height();
|
||||
o + i <= $(window).width() ? $(this).removeClass("edge") : $(this).addClass("edge")
|
||||
}
|
||||
}) : $("li.pcoded-hasmenu").on("click", function(e) {
|
||||
if (e.preventDefault(), $(".pcoded-submenu", this).length) {
|
||||
var t = $(".pcoded-submenu:first", this),
|
||||
a = t.offset(),
|
||||
o = a.left,
|
||||
i = t.width();
|
||||
$(window).height();
|
||||
o + i <= $(window).width() || $(this).toggleClass("edge")
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
HandleHorizontalItemIsCentered: function() {
|
||||
if ("horizontal" === e.themelayout) switch (e.horizontalNavIsCentered) {
|
||||
case !0:
|
||||
$("#" + t + " .pcoded-navbar").addClass("isCentered");
|
||||
break;
|
||||
case !1:
|
||||
$("#" + t + " .pcoded-navbar").removeClass("isCentered")
|
||||
}
|
||||
},
|
||||
HandleHorizontalItemAlignment: function() {
|
||||
"horizontal" === e.themelayout && !1 === e.horizontalNavIsCentered && (function() {
|
||||
var a = $("#" + t + ".pcoded .pcoded-navbar .pcoded-brand");
|
||||
if (!0 === e.horizontalBrandItem) switch (e.horizontalBrandItemAlign) {
|
||||
case "left":
|
||||
a.removeClass("pcoded-right-align"), a.addClass("pcoded-left-align");
|
||||
break;
|
||||
case "right":
|
||||
a.removeClass("pcoded-left-align"), a.addClass("pcoded-right-align")
|
||||
} else a.hide()
|
||||
}(), function() {
|
||||
var a = $("#" + t + ".pcoded .pcoded-navbar .pcoded-item.pcoded-left-item");
|
||||
if (!0 === e.horizontalLeftNavItem) switch (e.horizontalLeftNavItemAlign) {
|
||||
case "left":
|
||||
a.removeClass("pcoded-right-align"), a.addClass("pcoded-left-align");
|
||||
break;
|
||||
case "right":
|
||||
a.removeClass("pcoded-left-align"), a.addClass("pcoded-right-align")
|
||||
} else a.hide()
|
||||
}(), function() {
|
||||
var a = $("#" + t + ".pcoded .pcoded-navbar .pcoded-item.pcoded-right-item");
|
||||
if (!0 === e.horizontalRightItem) switch (e.horizontalRightItemAlign) {
|
||||
case "left":
|
||||
a.removeClass("pcoded-right-align"), a.addClass("pcoded-left-align");
|
||||
break;
|
||||
case "right":
|
||||
a.removeClass("pcoded-left-align"), a.addClass("pcoded-right-align")
|
||||
} else a.hide()
|
||||
}(), function() {
|
||||
var a = $("#" + t + ".pcoded .pcoded-navbar .pcoded-search-item");
|
||||
if (!0 === e.horizontalSearchItem) switch (e.horizontalsearchItemAlign) {
|
||||
case "left":
|
||||
a.removeClass("pcoded-right-align"), a.addClass("pcoded-left-align");
|
||||
break;
|
||||
case "right":
|
||||
a.removeClass("pcoded-left-align"), a.addClass("pcoded-right-align")
|
||||
} else a.hide()
|
||||
}())
|
||||
},
|
||||
HandleVerticalNavigationView: function() {
|
||||
switch (e.themelayout) {
|
||||
case "vertical":
|
||||
var a = e.VerticalNavigationView;
|
||||
$("#" + t + ".pcoded").attr("vnavigation-view", a);
|
||||
break;
|
||||
case "horizontal":
|
||||
var a = e.horizontalNavigationView;
|
||||
$("#" + t + ".pcoded").attr("hnavigation-view", a)
|
||||
}
|
||||
},
|
||||
HandleVerticalSubMenuItemIconStyle: function() {
|
||||
switch (e.themelayout) {
|
||||
case "vertical":
|
||||
var a = e.VerticalSubMenuItemIconStyle;
|
||||
$("#" + t + " .pcoded-navbar .pcoded-hasmenu").attr("subitem-icon", a);
|
||||
break;
|
||||
case "horizontal":
|
||||
$("#" + t + " .pcoded-navbar .pcoded-hasmenu").attr("subitem-icon", a)
|
||||
}
|
||||
},
|
||||
HandleNavbarPosition: function() {
|
||||
var a = e.FixedNavbarPosition,
|
||||
o = e.FixedHeaderPosition;
|
||||
e.FixedRightHeaderPosition;
|
||||
switch (e.themelayout) {
|
||||
case "vertical":
|
||||
case "horizontal":
|
||||
1 == a ? ($("#" + t + " .pcoded-navbar").attr("pcoded-navbar-position", "fixed"), $("#" + t + " .pcoded-header .pcoded-left-header").attr("pcoded-lheader-position", "fixed")) : ($("#" + t + " .pcoded-navbar").attr("pcoded-navbar-position", "absolute"), $("#" + t + " .pcoded-header .pcoded-left-header").attr("pcoded-lheader-position", "absolute")), 1 == o ? ($("#" + t + " .pcoded-header").attr("pcoded-header-position", "fixed"), $("#" + t + " .pcoded-main-container").css("margin-top", $(".pcoded-header").outerHeight())) : ($("#" + t + " .pcoded-header").attr("pcoded-header-position", "relative"), $("#" + t + " .pcoded-main-container").css("margin-top", "0px"))
|
||||
}
|
||||
},
|
||||
HandleOptionSelectorPanel: function() {
|
||||
$(".selector-toggle > a").on("click", function() {
|
||||
$("#styleSelector").toggleClass("open")
|
||||
})
|
||||
},
|
||||
HandleDropDownIconStyle: function() {
|
||||
var a = e.DropDownIconStyle;
|
||||
switch (e.themelayout) {
|
||||
case "vertical":
|
||||
case "horizontal":
|
||||
$("#" + t + " .pcoded-navbar .pcoded-hasmenu").attr("dropdown-icon", a)
|
||||
}
|
||||
},
|
||||
HandleSubItemBorder: function() {
|
||||
switch (e.SubItemBorder) {
|
||||
case !0:
|
||||
$("#" + t + " .pcoded-navbar .pcoded-item").attr("subitem-border", "true");
|
||||
break;
|
||||
case !1:
|
||||
$("#" + t + " .pcoded-navbar .pcoded-item").attr("subitem-border", "false")
|
||||
}
|
||||
},
|
||||
HandleBorderStyle: function() {
|
||||
var a = e.ItemBorderStyle;
|
||||
switch (e.ItemBorder) {
|
||||
case !0:
|
||||
$("#" + t + " .pcoded-navbar .pcoded-item").attr("item-border-style", a);
|
||||
break;
|
||||
case !1:
|
||||
$("#" + t + " .pcoded-navbar .pcoded-item").attr("item-border-style", "")
|
||||
}
|
||||
},
|
||||
HandleItemBorder: function() {
|
||||
switch (e.ItemBorder) {
|
||||
case !0:
|
||||
$("#" + t + " .pcoded-navbar .pcoded-item").attr("item-border", "true");
|
||||
break;
|
||||
case !1:
|
||||
$("#" + t + " .pcoded-navbar .pcoded-item").attr("item-border", "false")
|
||||
}
|
||||
},
|
||||
HandleActiveItemStyle: function() {
|
||||
var a = e.ActiveItemStyle;
|
||||
void 0 != a && "" != a ? $("#" + t + " .pcoded-navbar").attr("active-item-style", a) : $("#" + t + " .pcoded-navbar").attr("active-item-style", "style0")
|
||||
},
|
||||
Handlemenutype: function() {
|
||||
var a = e.menutype,
|
||||
o = e.freamtype;
|
||||
void 0 != a && "" != a ? $("#" + t).attr("nav-type", a) : $("#" + t).attr("nav-type", "st1"), void 0 != o && "" != o ? $("#" + t).attr("fream-type", o) : $("#" + t).attr("fream-type", "theme1")
|
||||
},
|
||||
Handlelayoutvartype: function() {
|
||||
var a = e.layouttype;
|
||||
void 0 != a && "" != a ? $("#" + t).attr("layout-type", a) : $("#" + t).attr("layout-type", "light")
|
||||
},
|
||||
HandleThemeBackground: function() {
|
||||
! function() {
|
||||
var t = e.ThemeBackgroundPattern;
|
||||
void 0 != t && "" != t ? $("body").attr("themebg-pattern", t) : $("body").attr("themebg-pattern", "theme1")
|
||||
}(),
|
||||
function() {
|
||||
var a = e.HeaderBackground,
|
||||
o = e.LogoTheme;
|
||||
void 0 != a && "" != a ? $("#" + t + " .pcoded-header").attr("header-theme", a) : $("#" + t + " .pcoded-header").attr("header-theme", "theme1"), void 0 != o && "" != o ? $("#" + t + " .navbar-logo").attr("logo-theme", o) : $("#" + t + " .navbar-logo").attr("logo-theme", "theme1")
|
||||
}(),
|
||||
function() {
|
||||
var a = e.LHeaderBackground;
|
||||
void 0 != a && "" != a ? $("#" + t + " .pcoded-navigation-label").attr("menu-title-theme", a) : $("#" + t + " .pcoded-navigation-label").attr("menu-title-theme", "theme4")
|
||||
}(),
|
||||
function() {
|
||||
var a = e.NavbarBackground;
|
||||
void 0 != a && "" != a ? $("#" + t + " .pcoded-navbar").attr("navbar-theme", a) : $("#" + t + " .pcoded-navbar").attr("navbar-theme", "theme1")
|
||||
}(),
|
||||
function() {
|
||||
var a = e.ActiveItemBackground;
|
||||
void 0 != a && "" != a ? $("#" + t + " .pcoded-navbar").attr("active-item-theme", a) : $("#" + t + " .pcoded-navbar").attr("active-item-theme", "theme1")
|
||||
}(),
|
||||
function() {
|
||||
var a = e.SubItemBackground;
|
||||
void 0 != a && "" != a ? $("#" + t + " .pcoded-navbar").attr("sub-item-theme", a) : $("#" + t + " .pcoded-navbar").attr("sub-item-theme", "theme1")
|
||||
}()
|
||||
},
|
||||
HandleVerticalLeftHeader: function() {
|
||||
if ("vertical" !== e.themelayout) return !1;
|
||||
switch (e.collapseVerticalLeftHeader) {
|
||||
case !0:
|
||||
$("#" + t + " .pcoded-header").addClass("iscollapsed"), $("#" + t + " .pcoded-header").removeClass("nocollapsed"), $("#" + t + ".pcoded").addClass("iscollapsed"), $("#" + t + ".pcoded").removeClass("nocollapsed");
|
||||
break;
|
||||
case !1:
|
||||
$("#" + t + " .pcoded-header").removeClass("iscollapsed"), $("#" + t + " .pcoded-header").addClass("nocollapsed"), $("#" + t + ".pcoded").removeClass("iscollapsed"), $("#" + t + ".pcoded").addClass("nocollapsed")
|
||||
}
|
||||
},
|
||||
HandleOffcanvasMenu: function() {
|
||||
if ("vertical" === e.themelayout) {
|
||||
"offcanvas" == $("#" + t).attr("vertical-nav-type") && $("#" + t).attr("vertical-layout", "wide")
|
||||
}
|
||||
},
|
||||
HandleActiveItem: function() {},
|
||||
HandleSubMenuTrigger: function() {
|
||||
function a(e) {
|
||||
"hover" == e ? (n = e, i.off("click").off("mouseenter mouseleave").hover(function() {
|
||||
$(this).addClass("pcoded-trigger")
|
||||
}, function() {
|
||||
$(this).removeClass("pcoded-trigger")
|
||||
})) : "click" == e && (n = e, i.off("mouseenter mouseleave").off("click").on("click", function(e) {
|
||||
e.stopPropagation(), 0 === $(this).closest(".pcoded-submenu").length ? $(this).hasClass("pcoded-trigger") ? $(this).removeClass("pcoded-trigger") : ($(this).closest(".pcoded-inner-navbar").find("li.pcoded-trigger").removeClass("pcoded-trigger"), $(this).addClass("pcoded-trigger")) : $(this).hasClass("pcoded-trigger") ? $(this).removeClass("pcoded-trigger") : ($(this).closest(".pcoded-submenu").find("li.pcoded-trigger").removeClass("pcoded-trigger"), $(this).addClass("pcoded-trigger"))
|
||||
}))
|
||||
}
|
||||
switch (e.SubMenuTrigger) {
|
||||
case "hover":
|
||||
$("#" + t + " .pcoded-navbar .pcoded-hasmenu").addClass("is-hover");
|
||||
var o = $(window),
|
||||
i = $(".pcoded-submenu > li"),
|
||||
d = o.width(),
|
||||
n = "";
|
||||
a(d >= 992 ? "hover" : "click"), o.resize(function() {
|
||||
var e = o.width();
|
||||
d != e && (e >= 992 && "hover" != n ? a("hover") : e < 992 && "click" != n && a("click"), d = e)
|
||||
});
|
||||
break;
|
||||
case "click":
|
||||
$("#" + t + " .pcoded-navbar .pcoded-hasmenu").removeClass("is-hover"), $(".pcoded-submenu > li").on("click", function(e) {
|
||||
e.stopPropagation(), 0 === $(this).closest(".pcoded-submenu").length ? $(this).hasClass("pcoded-trigger") ? ($(this).removeClass("pcoded-trigger"), $(this).children(".pcoded-submenu").slideUp()) : ($(".pcoded-hasmenu li.pcoded-trigger").children(".pcoded-submenu").slideUp(), $(this).closest(".pcoded-inner-navbar").find("li.pcoded-trigger").removeClass("pcoded-trigger"), $(this).addClass("pcoded-trigger"), $(this).children(".pcoded-submenu").slideDown()) : $(this).hasClass("pcoded-trigger") ? ($(this).removeClass("pcoded-trigger"), $(this).children(".pcoded-submenu").slideUp()) : ($(".pcoded-hasmenu li.pcoded-trigger").children(".pcoded-submenu").slideUp(), $(this).closest(".pcoded-submenu").find("li.pcoded-trigger").removeClass("pcoded-trigger"), $(this).addClass("pcoded-trigger"), $(this).children(".pcoded-submenu").slideDown())
|
||||
})
|
||||
}
|
||||
},
|
||||
HandleMenuTrigger: function() {
|
||||
function a(e) {
|
||||
"hover" == e ? (n = e, i.off("click").off("mouseenter mouseleave").hover(function() {
|
||||
$(this).addClass("pcoded-trigger")
|
||||
}, function() {
|
||||
$(this).removeClass("pcoded-trigger")
|
||||
})) : "click" == e && (n = e, i.off("mouseenter mouseleave").off("click").on("click", function() {
|
||||
$(this).hasClass("pcoded-trigger") ? $(this).removeClass("pcoded-trigger") : ($(this).closest(".pcoded-inner-navbar").find("li.pcoded-trigger").removeClass("pcoded-trigger"), $(this).addClass("pcoded-trigger"))
|
||||
}))
|
||||
}
|
||||
switch (e.MenuTrigger) {
|
||||
case "hover":
|
||||
$("#" + t + " .pcoded-navbar").addClass("is-hover");
|
||||
var o = $(window),
|
||||
i = $(".pcoded-item > li"),
|
||||
d = o.width(),
|
||||
n = "";
|
||||
a(d >= 992 ? "hover" : "click"), o.resize(function() {
|
||||
var e = o.width();
|
||||
d != e && (e >= 992 && "hover" != n ? a("hover") : e < 992 && "click" != n && a("click"), d = e)
|
||||
});
|
||||
break;
|
||||
case "click":
|
||||
$("#" + t + " .pcoded-navbar").removeClass("is-hover"), $(".pcoded-item > li ").on("click", function() {
|
||||
$(this).hasClass("pcoded-trigger") ? ($(this).removeClass("pcoded-trigger"), $(this).children(".pcoded-submenu").slideUp()) : ($("li.pcoded-trigger").children(".pcoded-submenu").slideUp(), $(this).closest(".pcoded-inner-navbar").find("li.pcoded-trigger").removeClass("pcoded-trigger"), $(this).addClass("pcoded-trigger"), $(this).children(".pcoded-submenu").slideDown())
|
||||
})
|
||||
}
|
||||
},
|
||||
HandleMenuOnClick: function() {
|
||||
var a = $(window)[0].innerWidth;
|
||||
"vertical" === e.themelayout ? $("#mobile-collapse,#mobile-collapse1,.sidebar_toggle a, .pcoded-overlay-box,.menu-toggle a").on("click", function() {
|
||||
$(this).parent().find(".menu-icon").toggleClass("is-clicked");
|
||||
var a = $("#" + t).attr("pcoded-device-type");
|
||||
if ("desktop" == a) {
|
||||
var o = e.onToggleVerticalMenu.desktop,
|
||||
i = e.defaultVerticalMenu.desktop,
|
||||
d = $("#" + t).attr("vertical-nav-type");
|
||||
if (d == i) $("#" + t).attr("vertical-nav-type", o);
|
||||
else {
|
||||
if (d != o) return !1;
|
||||
$("#" + t).attr("vertical-nav-type", i)
|
||||
}
|
||||
} else if ("tablet" == a) {
|
||||
var n = e.onToggleVerticalMenu.tablet,
|
||||
r = e.defaultVerticalMenu.tablet,
|
||||
c = $("#" + t).attr("vertical-nav-type");
|
||||
c == r ? $("#" + t).attr("vertical-nav-type", n) : d == o && $("#" + t).attr("vertical-nav-type", r)
|
||||
} else if ("phone" == a) {
|
||||
var l = e.onToggleVerticalMenu.phone,
|
||||
s = e.defaultVerticalMenu.phone,
|
||||
p = $("#" + t).attr("vertical-nav-type");
|
||||
p == s ? $("#" + t).attr("vertical-nav-type", l) : d == o && $("#" + t).attr("vertical-nav-type", s)
|
||||
}
|
||||
$(".pcoded").addClass("pcoded-toggle-animate"), setTimeout(function() {
|
||||
$(".pcoded").removeClass("pcoded-toggle-animate")
|
||||
}, 500)
|
||||
}) : "horizontal" === e.themelayout && (a >= 768 && a <= 992 ? $("#" + t).attr("pcoded-device-type", "tablet") : a < 768 ? $("#" + t).attr("pcoded-device-type", "phone") : $("#" + t).attr("pcoded-device-type", "desktop"))
|
||||
},
|
||||
Handlecomponetheight: function() {
|
||||
function e() {
|
||||
$(window).height(), $(".pcoded-header").innerHeight(), $(".pcoded-navbar").innerHeight(), $(".pcoded-footer").innerHeight()
|
||||
}
|
||||
e(), $(window).resize(function() {
|
||||
e()
|
||||
})
|
||||
},
|
||||
HandleDeviceType: function() {
|
||||
function a() {
|
||||
var a = $(window)[0].innerWidth;
|
||||
if ("vertical" === e.themelayout)
|
||||
if (a >= 768 && a <= 992) {
|
||||
$("#" + t).attr("pcoded-device-type", "tablet");
|
||||
var o = e.defaultVerticalMenu.tablet;
|
||||
void 0 != o && "" != o ? $("#" + t).attr("vertical-nav-type", o) : $("#" + t).attr("vertical-nav-type", "collapsed");
|
||||
var i = e.verticalMenueffect.tablet;
|
||||
void 0 != i && "" != o ? $("#" + t).attr("vertical-effect", i) : $("#" + t).attr("vertical-effect", "shrink")
|
||||
} else if (a < 768) {
|
||||
$("#" + t).attr("pcoded-device-type", "phone");
|
||||
var o = e.defaultVerticalMenu.phone;
|
||||
void 0 != o && "" != o ? $("#" + t).attr("vertical-nav-type", o) : $("#" + t).attr("vertical-nav-type", "offcanvas");
|
||||
var i = e.verticalMenueffect.phone;
|
||||
void 0 != i && "" != o ? $("#" + t).attr("vertical-effect", i) : $("#" + t).attr("vertical-effect", "push")
|
||||
} else {
|
||||
$("#" + t).attr("pcoded-device-type", "desktop");
|
||||
var o = e.defaultVerticalMenu.desktop;
|
||||
void 0 != o && "" != o ? $("#" + t).attr("vertical-nav-type", o) : $("#" + t).attr("vertical-nav-type", "expanded");
|
||||
var i = e.verticalMenueffect.desktop;
|
||||
void 0 != i && "" != o ? $("#" + t).attr("vertical-effect", i) : $("#" + t).attr("vertical-effect", "shrink")
|
||||
} else "horizontal" === e.themelayout && (a >= 768 && a <= 992 ? $("#" + t).attr("pcoded-device-type", "tablet") : a < 768 ? $("#" + t).attr("pcoded-device-type", "phone") : $("#" + t).attr("pcoded-device-type", "desktop"))
|
||||
}
|
||||
a(), $(window).resize(function() {
|
||||
tw = $(window)[0].innerWidth, dt = $("#" + t).attr("pcoded-device-type"), "desktop" == dt && tw < 992 ? a() : "phone" == dt && tw > 768 ? a() : "tablet" == dt && tw < 768 ? a() : "tablet" == dt && tw > 992 && a()
|
||||
})
|
||||
},
|
||||
HandleMenulayout: function() {
|
||||
if ("vertical" === e.themelayout) switch (e.verticalMenulayout) {
|
||||
case "wide":
|
||||
$("#" + t).attr("vertical-layout", "wide");
|
||||
break;
|
||||
case "box":
|
||||
$("#" + t).attr("vertical-layout", "box");
|
||||
break;
|
||||
case "widebox":
|
||||
$("#" + t).attr("vertical-layout", "widebox")
|
||||
} else {
|
||||
if ("horizontal" !== e.themelayout) return !1;
|
||||
switch (e.horizontalMenulayout) {
|
||||
case "wide":
|
||||
$("#" + t).attr("horizontal-layout", "wide");
|
||||
break;
|
||||
case "box":
|
||||
$("#" + t).attr("horizontal-layout", "box");
|
||||
break;
|
||||
case "widebox":
|
||||
$("#" + t).attr("horizontal-layout", "widebox")
|
||||
}
|
||||
}
|
||||
},
|
||||
HandlehorizontalMenuplacement: function() {
|
||||
if ("horizontal" === e.themelayout) switch (e.horizontalMenuplacement) {
|
||||
case "bottom":
|
||||
$("#" + t).attr("horizontal-placement", "bottom");
|
||||
break;
|
||||
case "top":
|
||||
$("#" + t).attr("horizontal-placement", "top")
|
||||
} else $("#" + t).removeAttr("horizontal-placement")
|
||||
},
|
||||
HandleverticalMenuplacement: function() {
|
||||
if ("vertical" === e.themelayout) switch (e.verticalMenuplacement) {
|
||||
case "left":
|
||||
$("#" + t).attr("vertical-placement", "left");
|
||||
break;
|
||||
case "right":
|
||||
$("#" + t).attr("vertical-placement", "right")
|
||||
} else $("#" + t).removeAttr("vertical-placement")
|
||||
},
|
||||
Handlethemelayout: function() {
|
||||
switch (e.themelayout) {
|
||||
case "horizontal":
|
||||
$("#" + t).attr("theme-layout", "horizontal");
|
||||
break;
|
||||
case "vertical":
|
||||
$("#" + t).attr("theme-layout", "vertical")
|
||||
}
|
||||
}
|
||||
};
|
||||
o.PcodedMenuInit()
|
||||
}, $(window).scroll(function() {
|
||||
$(this).scrollTop() > 70 ? ($('.pcoded[theme-layout="vertical"] .pcoded-navbar[pcoded-navbar-position="fixed"][pcoded-header-position="relative"]').css("position", "fixed"), $('.pcoded[theme-layout="vertical"] .pcoded-navbar[pcoded-navbar-position="fixed"][pcoded-header-position="relative"]').css("top", 0), $('.pcoded[theme-layout="vertical"] .pcoded-navbar[pcoded-navbar-position="fixed"][pcoded-header-position="relative"]').css("height", "100%"), $('.pcoded[theme-layout="vertical"] .pcoded-navbar[pcoded-navbar-position="fixed"][pcoded-header-position="relative"] .nav-list').css("height", "100%")) : ($('.pcoded[theme-layout="vertical"] .pcoded-navbar[pcoded-navbar-position="fixed"][pcoded-header-position="relative"]').css("position", "absolute"), $('.pcoded[theme-layout="vertical"] .pcoded-navbar[pcoded-navbar-position="fixed"][pcoded-header-position="relative"]').css("top", "auto"))
|
||||
}), $(window).scroll(function() {
|
||||
$(this).scrollTop() > 70 ? ($('.pcoded[theme-layout="horizontal"][pcoded-device-type="desktop"] .pcoded-navbar[pcoded-navbar-position="fixed"][pcoded-header-position="relative"]').css("position", "fixed"), $('.pcoded[theme-layout="horizontal"][pcoded-device-type="desktop"] .pcoded-navbar[pcoded-navbar-position="fixed"][pcoded-header-position="relative"]').css("top", 0)) : ($('.pcoded[theme-layout="horizontal"][pcoded-device-type="desktop"] .pcoded-navbar[pcoded-navbar-position="fixed"][pcoded-header-position="relative"]').css("position", "absolute"), $('.pcoded[theme-layout="horizontal"][pcoded-device-type="desktop"] .pcoded-navbar[pcoded-navbar-position="fixed"][pcoded-header-position="relative"]').css("top", "auto"))
|
||||
}), $(window).on("load", function() {
|
||||
$('.pcoded[vertical-nav-type="collapsed"] .pcoded-navbar').hover(function() {
|
||||
$(".pcoded").attr("vertical-nav-type", "expanded")
|
||||
}, function() {
|
||||
$(".pcoded").attr("vertical-nav-type", "collapsed")
|
||||
})
|
||||
});
|
||||
124
safekiso-server/modules/base/wwwroot/admindek/js/rating.js
Normal file
124
safekiso-server/modules/base/wwwroot/admindek/js/rating.js
Normal file
@@ -0,0 +1,124 @@
|
||||
"use strict";
|
||||
$(document).ready(function() {
|
||||
function ratingEnable() {
|
||||
$('#example-1to10').barrating('show', {
|
||||
theme: 'bars-1to10',
|
||||
});
|
||||
|
||||
$('#example-movie').barrating('show', {
|
||||
theme: 'bars-movie'
|
||||
});
|
||||
|
||||
$('#example-movie').barrating('set', 'Mediocre');
|
||||
|
||||
$('#example-square').barrating('show', {
|
||||
theme: 'bars-square',
|
||||
showValues: true,
|
||||
showSelectedRating: false
|
||||
});
|
||||
|
||||
$('#example-pill').barrating('show', {
|
||||
theme: 'bars-pill',
|
||||
initialRating: 'A',
|
||||
showValues: true,
|
||||
showSelectedRating: false,
|
||||
allowEmpty: true,
|
||||
emptyValue: '-- no rating selected --',
|
||||
onSelect: function(value, text) {
|
||||
alert('Selected rating: ' + value);
|
||||
}
|
||||
});
|
||||
|
||||
$('#example-reversed').barrating('show', {
|
||||
theme: 'bars-reversed',
|
||||
showSelectedRating: true,
|
||||
reverse: true
|
||||
});
|
||||
|
||||
$('#example-horizontal').barrating('show', {
|
||||
theme: 'bars-horizontal',
|
||||
reverse: true,
|
||||
hoverState: false
|
||||
});
|
||||
|
||||
$('#example-fontawesome').barrating({
|
||||
theme: 'fontawesome-stars',
|
||||
showSelectedRating: false
|
||||
});
|
||||
|
||||
$('.rating-star').barrating({
|
||||
theme: 'css-stars',
|
||||
showSelectedRating: false
|
||||
});
|
||||
|
||||
$('#example-bootstrap').barrating({
|
||||
theme: 'bootstrap-stars',
|
||||
showSelectedRating: false
|
||||
});
|
||||
|
||||
var currentRating = $('#example-fontawesome-o').data('current-rating');
|
||||
|
||||
$('.stars-example-fontawesome-o .current-rating')
|
||||
.find('span')
|
||||
.html(currentRating);
|
||||
|
||||
$('.stars-example-fontawesome-o .clear-rating').on('click', function(event) {
|
||||
event.preventDefault();
|
||||
|
||||
$('#example-fontawesome-o')
|
||||
.barrating('clear');
|
||||
});
|
||||
|
||||
$('#example-fontawesome-o').barrating({
|
||||
theme: 'fontawesome-stars-o',
|
||||
showSelectedRating: false,
|
||||
initialRating: currentRating,
|
||||
onSelect: function(value, text) {
|
||||
if (!value) {
|
||||
$('#example-fontawesome-o')
|
||||
.barrating('clear');
|
||||
} else {
|
||||
$('.stars-example-fontawesome-o .current-rating')
|
||||
.addClass('hidden');
|
||||
|
||||
$('.stars-example-fontawesome-o .your-rating')
|
||||
.removeClass('hidden')
|
||||
.find('span')
|
||||
.html(value);
|
||||
}
|
||||
},
|
||||
onClear: function(value, text) {
|
||||
$('.stars-example-fontawesome-o')
|
||||
.find('.current-rating')
|
||||
.removeClass('hidden')
|
||||
.end()
|
||||
.find('.your-rating')
|
||||
.addClass('hidden');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function ratingDisable() {
|
||||
$('select').barrating('destroy');
|
||||
}
|
||||
|
||||
$('.rating-enable').on('click',function(event) {
|
||||
event.preventDefault();
|
||||
|
||||
ratingEnable();
|
||||
|
||||
$(this).addClass('deactivated');
|
||||
$('.rating-disable').removeClass('deactivated');
|
||||
});
|
||||
|
||||
$('.rating-disable').on('click',function(event) {
|
||||
event.preventDefault();
|
||||
|
||||
ratingDisable();
|
||||
|
||||
$(this).addClass('deactivated');
|
||||
$('.rating-enable').removeClass('deactivated');
|
||||
});
|
||||
|
||||
ratingEnable();
|
||||
});
|
||||
458
safekiso-server/modules/base/wwwroot/admindek/js/rocket-loader.min.js
vendored
Normal file
458
safekiso-server/modules/base/wwwroot/admindek/js/rocket-loader.min.js
vendored
Normal file
@@ -0,0 +1,458 @@
|
||||
! function() {
|
||||
"use strict";
|
||||
|
||||
function t() {
|
||||
return "cf-marker-" + Math.random().toString().slice(2)
|
||||
}
|
||||
|
||||
function e() {
|
||||
for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
|
||||
(n = console.warn || console.log).call.apply(n, [console, "[ROCKET LOADER] "].concat(t));
|
||||
var n
|
||||
}
|
||||
|
||||
function n(t, e) {
|
||||
var n = e.parentNode;
|
||||
n && f(t, n, e)
|
||||
}
|
||||
|
||||
function r(t, e) {
|
||||
f(t, e, e.childNodes[0])
|
||||
}
|
||||
|
||||
function o(t) {
|
||||
var e = t.parentNode;
|
||||
e && e.removeChild(t)
|
||||
}
|
||||
|
||||
function i(t) {
|
||||
var e = t.namespaceURI === P ? "xlink:href" : "src";
|
||||
return t.getAttribute(e)
|
||||
}
|
||||
|
||||
function a(t) {
|
||||
return !(t.type && !E[t.type.trim()]) && ((!A || !t.hasAttribute("nomodule")) && !(!A && "module" === t.type))
|
||||
}
|
||||
|
||||
function c(t, e) {
|
||||
return function(n) {
|
||||
if (e(), t) return t.call(this, n)
|
||||
}
|
||||
}
|
||||
|
||||
function s(t, e) {
|
||||
t.onload = c(t.onload, e), t.onerror = c(t.onerror, e)
|
||||
}
|
||||
|
||||
function u(t) {
|
||||
var e = document.createElementNS(t.namespaceURI, "script");
|
||||
e.async = t.hasAttribute("async"), e.textContent = t.textContent;
|
||||
for (var n = 0; n < t.attributes.length; n++) {
|
||||
var r = t.attributes[n];
|
||||
try {
|
||||
r.namespaceURI ? e.setAttributeNS(r.namespaceURI, r.name, r.value) : e.setAttribute(r.name, r.value)
|
||||
} catch (o) {}
|
||||
}
|
||||
return e
|
||||
}
|
||||
|
||||
function p(t, e) {
|
||||
var n = new k(e);
|
||||
t.dispatchEvent(n)
|
||||
}
|
||||
|
||||
function l(e) {
|
||||
var n = e.namespaceURI === P,
|
||||
r = t();
|
||||
e.setAttribute(r, "");
|
||||
var i = n ? "<svg>" + e.outerHTML + "</svg>" : e.outerHTML;
|
||||
I.call(document, i);
|
||||
var a = document.querySelector("[" + r + "]");
|
||||
if (a) {
|
||||
a.removeAttribute(r);
|
||||
var c = n && a.parentNode;
|
||||
c && o(c)
|
||||
}
|
||||
return a
|
||||
}
|
||||
|
||||
function d(t) {
|
||||
if (t && "handleEvent" in t) {
|
||||
var e = t.handleEvent;
|
||||
return "function" == typeof e ? e.bind(t) : e
|
||||
}
|
||||
return t
|
||||
}
|
||||
|
||||
function f(t, e, n) {
|
||||
var r = n ? function(t) {
|
||||
return e.insertBefore(t, n)
|
||||
} : function(t) {
|
||||
return e.appendChild(t)
|
||||
};
|
||||
Array.prototype.slice.call(t).forEach(r)
|
||||
}
|
||||
|
||||
function h() {
|
||||
return /chrome/i.test(navigator.userAgent) && /google/i.test(navigator.vendor)
|
||||
}
|
||||
|
||||
function v(t, e) {
|
||||
function n() {
|
||||
this.constructor = t
|
||||
}
|
||||
_(t, e), t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n)
|
||||
}
|
||||
|
||||
function y(t) {
|
||||
return t instanceof Window ? ["load"] : t instanceof Document ? ["DOMContentLoaded", "readystatechange"] : []
|
||||
}
|
||||
|
||||
function m(t) {
|
||||
var e = t.getAttribute(W);
|
||||
if (!e) return null;
|
||||
var n = e.split(R);
|
||||
return {
|
||||
nonce: n[0],
|
||||
handlerPrefixLength: +n[1],
|
||||
bailout: !t.hasAttribute("defer")
|
||||
}
|
||||
}
|
||||
|
||||
function b(t) {
|
||||
var e = T + t.nonce;
|
||||
Array.prototype.forEach.call(document.querySelectorAll("[" + e + "]"), function(n) {
|
||||
n.removeAttribute(e), Array.prototype.forEach.call(n.attributes, function(e) {
|
||||
/^on/.test(e.name) && "function" != typeof n[e.name] && n.setAttribute(e.name, e.value.substring(t.handlerPrefixLength))
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
function g() {
|
||||
var t = window;
|
||||
"undefined" != typeof Promise && (t.__cfQR = {
|
||||
done: new Promise(function(t) {
|
||||
return B = t
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
function S(t) {
|
||||
var e = new D(t),
|
||||
n = new O(e);
|
||||
e.harvestScriptsInDocument(), new M(e, {
|
||||
blocking: !0,
|
||||
docWriteSimulator: n,
|
||||
callback: function() {}
|
||||
}).run()
|
||||
}
|
||||
|
||||
function w(t) {
|
||||
var e = new D(t),
|
||||
n = new O(e);
|
||||
e.harvestScriptsInDocument();
|
||||
var r = new M(e, {
|
||||
blocking: !1,
|
||||
docWriteSimulator: n,
|
||||
callback: function() {
|
||||
window.__cfRLUnblockHandlers = !0, r.removePreloadHints(), x(t)
|
||||
}
|
||||
});
|
||||
r.insertPreloadHints(), j.runOnLoad(function() {
|
||||
r.run()
|
||||
})
|
||||
}
|
||||
|
||||
function x(t) {
|
||||
var e = new N(t);
|
||||
j.simulateStateBeforeDeferScriptsActivation(), e.harvestDeferScriptsInDocument(), new M(e, {
|
||||
blocking: !1,
|
||||
callback: function() {
|
||||
j.simulateStateAfterDeferScriptsActivation(), B && B()
|
||||
}
|
||||
}).run()
|
||||
}
|
||||
var P = "http://www.w3.org/2000/svg",
|
||||
E = {
|
||||
"application/ecmascript": !0,
|
||||
"application/javascript": !0,
|
||||
"application/x-ecmascript": !0,
|
||||
"application/x-javascript": !0,
|
||||
"text/ecmascript": !0,
|
||||
"text/javascript": !0,
|
||||
"text/javascript1.0": !0,
|
||||
"text/javascript1.1": !0,
|
||||
"text/javascript1.2": !0,
|
||||
"text/javascript1.3": !0,
|
||||
"text/javascript1.4": !0,
|
||||
"text/javascript1.5": !0,
|
||||
"text/jscript": !0,
|
||||
"text/livescript": !0,
|
||||
"text/x-ecmascript": !0,
|
||||
"text/x-javascript": !0,
|
||||
module: !0
|
||||
},
|
||||
A = void 0 !== document.createElement("script").noModule,
|
||||
k = function() {
|
||||
var t = window;
|
||||
return t.__rocketLoaderEventCtor || Object.defineProperty(t, "__rocketLoaderEventCtor", {
|
||||
value: Event
|
||||
}), t.__rocketLoaderEventCtor
|
||||
}(),
|
||||
I = document.write,
|
||||
L = document.writeln,
|
||||
_ = Object.setPrototypeOf || {
|
||||
__proto__: []
|
||||
}
|
||||
instanceof Array && function(t, e) {
|
||||
t.__proto__ = e
|
||||
} || function(t, e) {
|
||||
for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n])
|
||||
}, H = function() {
|
||||
function t(t) {
|
||||
this.nonce = t, this.items = []
|
||||
}
|
||||
return Object.defineProperty(t.prototype, "hasItems", {
|
||||
get: function() {
|
||||
return this.items.length > 0
|
||||
},
|
||||
enumerable: !0,
|
||||
configurable: !0
|
||||
}), t.prototype.pop = function() {
|
||||
return this.items.pop()
|
||||
}, t.prototype.forEach = function(t) {
|
||||
this.items.forEach(function(e) {
|
||||
var n = e.script;
|
||||
return t(n)
|
||||
})
|
||||
}, t.prototype.harvestScripts = function(t, e) {
|
||||
var n = this,
|
||||
r = e.filter,
|
||||
o = e.mutate;
|
||||
Array.prototype.slice.call(t.querySelectorAll("script")).filter(r).reverse().forEach(function(t) {
|
||||
o(t), n.pushScriptOnStack(t)
|
||||
})
|
||||
}, t.prototype.pushScriptOnStack = function(t) {
|
||||
var e = t.parentNode,
|
||||
n = this.createPlaceholder(t),
|
||||
r = !!i(t);
|
||||
e.replaceChild(n, t), this.items.push({
|
||||
script: t,
|
||||
placeholder: n,
|
||||
external: r,
|
||||
async: r && t.hasAttribute("async"),
|
||||
executable: a(t)
|
||||
})
|
||||
}, t.prototype.hasNonce = function(t) {
|
||||
return 0 === t.type.indexOf(this.nonce)
|
||||
}, t.prototype.removeNonce = function(t) {
|
||||
t.type = t.type.substr(this.nonce.length)
|
||||
}, t.prototype.makeNonExecutable = function(t) {
|
||||
t.type = this.nonce + t.type
|
||||
}, t.prototype.isPendingDeferScript = function(t) {
|
||||
return t.hasAttribute("defer") || t.type === this.nonce + "module" && !t.hasAttribute("async")
|
||||
}, t
|
||||
}(), D = function(t) {
|
||||
function e() {
|
||||
return null !== t && t.apply(this, arguments) || this
|
||||
}
|
||||
return v(e, t), e.prototype.harvestScriptsInDocument = function() {
|
||||
var t = this;
|
||||
this.harvestScripts(document, {
|
||||
filter: function(e) {
|
||||
return t.hasNonce(e)
|
||||
},
|
||||
mutate: function(e) {
|
||||
t.isPendingDeferScript(e) || t.removeNonce(e)
|
||||
}
|
||||
})
|
||||
}, e.prototype.harvestScriptsAfterDocWrite = function(t) {
|
||||
var e = this;
|
||||
this.harvestScripts(t, {
|
||||
filter: a,
|
||||
mutate: function(t) {
|
||||
e.isPendingDeferScript(t) && e.makeNonExecutable(t)
|
||||
}
|
||||
})
|
||||
}, e.prototype.createPlaceholder = function(t) {
|
||||
return document.createComment(t.outerHTML)
|
||||
}, e
|
||||
}(H), N = function(t) {
|
||||
function e() {
|
||||
return null !== t && t.apply(this, arguments) || this
|
||||
}
|
||||
return v(e, t), e.prototype.harvestDeferScriptsInDocument = function() {
|
||||
var t = this;
|
||||
this.harvestScripts(document, {
|
||||
filter: function(e) {
|
||||
return t.hasNonce(e) && t.isPendingDeferScript(e)
|
||||
},
|
||||
mutate: function(e) {
|
||||
return t.removeNonce(e)
|
||||
}
|
||||
})
|
||||
}, e.prototype.createPlaceholder = function(t) {
|
||||
var e = u(t);
|
||||
return this.makeNonExecutable(e), e
|
||||
}, e
|
||||
}(H), O = function() {
|
||||
function t(t) {
|
||||
this.scriptStack = t
|
||||
}
|
||||
return t.prototype.enable = function(t) {
|
||||
var e = this;
|
||||
this.insertionPointMarker = t, this.buffer = "", document.write = function() {
|
||||
for (var t = [], n = 0; n < arguments.length; n++) t[n] = arguments[n];
|
||||
return e.write(t, !1)
|
||||
}, document.writeln = function() {
|
||||
for (var t = [], n = 0; n < arguments.length; n++) t[n] = arguments[n];
|
||||
return e.write(t, !0)
|
||||
}
|
||||
}, t.prototype.flushWrittenContentAndDisable = function() {
|
||||
document.write = I, document.writeln = L, this.buffer.length && (document.contains(this.insertionPointMarker) ? this.insertionPointMarker.parentNode === document.head ? this.insertContentInHead() : this.insertContentInBody() : e("Insertion point marker for document.write was detached from document:", "Markup will not be inserted"))
|
||||
}, t.prototype.insertContentInHead = function() {
|
||||
var t = new DOMParser,
|
||||
e = "<!DOCTYPE html><head>" + this.buffer + "</head>",
|
||||
o = t.parseFromString(e, "text/html");
|
||||
if (this.scriptStack.harvestScriptsAfterDocWrite(o), n(o.head.childNodes, this.insertionPointMarker), o.body.childNodes.length) {
|
||||
for (var i = Array.prototype.slice.call(o.body.childNodes), a = this.insertionPointMarker.nextSibling; a;) i.push(a), a = a.nextSibling;
|
||||
document.body || I.call(document, "<body>"), r(i, document.body)
|
||||
}
|
||||
}, t.prototype.insertContentInBody = function() {
|
||||
var t = this.insertionPointMarker.parentElement,
|
||||
e = document.createElement(t.tagName);
|
||||
e.innerHTML = this.buffer, this.scriptStack.harvestScriptsAfterDocWrite(e), n(e.childNodes, this.insertionPointMarker)
|
||||
}, t.prototype.write = function(t, e) {
|
||||
var n = document.currentScript;
|
||||
n && i(n) && n.hasAttribute("async") ? (r = e ? L : I).call.apply(r, [document].concat(t)) : this.buffer += t.map(String).join(e ? "\n" : "");
|
||||
var r
|
||||
}, t
|
||||
}(), C = function() {
|
||||
function t() {
|
||||
var t = this;
|
||||
this.simulatedReadyState = "loading", this.bypassEventsInProxies = !1, this.nativeWindowAddEventListener = window.addEventListener;
|
||||
try {
|
||||
Object.defineProperty(document, "readyState", {
|
||||
get: function() {
|
||||
return t.simulatedReadyState
|
||||
}
|
||||
})
|
||||
} catch (e) {}
|
||||
this.setupEventListenerProxy(), this.updateInlineHandlers()
|
||||
}
|
||||
return t.prototype.runOnLoad = function(t) {
|
||||
var e = this;
|
||||
this.nativeWindowAddEventListener.call(window, "load", function(n) {
|
||||
if (!e.bypassEventsInProxies) return t(n)
|
||||
})
|
||||
}, t.prototype.updateInlineHandlers = function() {
|
||||
this.proxyInlineHandler(document, "onreadystatechange"), this.proxyInlineHandler(window, "onload"), document.body && this.proxyInlineHandler(document.body, "onload")
|
||||
}, t.prototype.simulateStateBeforeDeferScriptsActivation = function() {
|
||||
this.bypassEventsInProxies = !0, this.simulatedReadyState = "interactive", p(document, "readystatechange"), this.bypassEventsInProxies = !1
|
||||
}, t.prototype.simulateStateAfterDeferScriptsActivation = function() {
|
||||
var t = this;
|
||||
this.bypassEventsInProxies = !0, p(document, "DOMContentLoaded"), this.simulatedReadyState = "complete", p(document, "readystatechange"), p(window, "load"), this.bypassEventsInProxies = !1, window.setTimeout(function() {
|
||||
return t.bypassEventsInProxies = !0
|
||||
}, 0)
|
||||
}, t.prototype.setupEventListenerProxy = function() {
|
||||
var t = this;
|
||||
("undefined" != typeof EventTarget ? [EventTarget.prototype] : [Node.prototype, Window.prototype]).forEach(function(e) {
|
||||
return t.patchEventTargetMethods(e)
|
||||
})
|
||||
}, t.prototype.patchEventTargetMethods = function(t) {
|
||||
var e = this,
|
||||
n = t.addEventListener,
|
||||
r = t.removeEventListener;
|
||||
t.addEventListener = function(t, r) {
|
||||
for (var o = [], i = 2; i < arguments.length; i++) o[i - 2] = arguments[i];
|
||||
var a = y(this),
|
||||
c = r && r.__rocketLoaderProxiedHandler;
|
||||
if (!c) {
|
||||
var s = d(r);
|
||||
"function" == typeof s ? (c = function(n) {
|
||||
if (e.bypassEventsInProxies || a.indexOf(t) < 0) return s.call(this, n)
|
||||
}, Object.defineProperty(r, "__rocketLoaderProxiedHandler", {
|
||||
value: c
|
||||
})) : c = r
|
||||
}
|
||||
n.call.apply(n, [this, t, c].concat(o))
|
||||
}, t.removeEventListener = function(t, e) {
|
||||
for (var n = [], o = 2; o < arguments.length; o++) n[o - 2] = arguments[o];
|
||||
var i = e && e.__rocketLoaderProxiedHandler || e;
|
||||
r.call.apply(r, [this, t, i].concat(n))
|
||||
}
|
||||
}, t.prototype.proxyInlineHandler = function(t, e) {
|
||||
try {
|
||||
var n = t[e];
|
||||
if (n && !n.__rocketLoaderInlineHandlerProxy) {
|
||||
var r = this;
|
||||
t[e] = function(t) {
|
||||
if (r.bypassEventsInProxies) return n.call(this, t)
|
||||
}, Object.defineProperty(t[e], "__rocketLoaderInlineHandlerProxy", {
|
||||
value: !0
|
||||
})
|
||||
}
|
||||
} catch (o) {
|
||||
return void console.warn("encountered an error when accessing " + e + " handler:", o.message)
|
||||
}
|
||||
}, t
|
||||
}(), j = function() {
|
||||
var t = window;
|
||||
return t.__rocketLoaderLoadProgressSimulator || Object.defineProperty(t, "__rocketLoaderLoadProgressSimulator", {
|
||||
value: new C
|
||||
}), t.__rocketLoaderLoadProgressSimulator
|
||||
}(), M = function() {
|
||||
function t(t, e) {
|
||||
this.scriptStack = t, this.settings = e, this.preloadHints = []
|
||||
}
|
||||
return t.prototype.insertPreloadHints = function() {
|
||||
var t = this;
|
||||
this.scriptStack.forEach(function(e) {
|
||||
var n = i(e),
|
||||
r = h() && e.hasAttribute("integrity");
|
||||
if (n && !r) {
|
||||
var o = document.createElement("link");
|
||||
o.setAttribute("rel", "preload"), o.setAttribute("as", "script"), o.setAttribute("href", n), e.crossOrigin && o.setAttribute("crossorigin", e.crossOrigin), document.head.appendChild(o), t.preloadHints.push(o)
|
||||
}
|
||||
})
|
||||
}, t.prototype.removePreloadHints = function() {
|
||||
this.preloadHints.forEach(function(t) {
|
||||
return o(t)
|
||||
})
|
||||
}, t.prototype.run = function() {
|
||||
for (var t = this, e = this; this.scriptStack.hasItems;) {
|
||||
var n = function() {
|
||||
var n = e.settings.docWriteSimulator,
|
||||
r = e.scriptStack.pop();
|
||||
n && !r.async && n.enable(r.placeholder);
|
||||
var o = e.activateScript(r);
|
||||
return o ? r.external && r.executable && !r.async ? (s(o, function() {
|
||||
t.finalizeActivation(r), t.run()
|
||||
}), {
|
||||
value: void 0
|
||||
}) : void e.finalizeActivation(r) : (n && n.flushWrittenContentAndDisable(), "continue")
|
||||
}();
|
||||
if ("object" == typeof n) return n.value
|
||||
}
|
||||
this.scriptStack.hasItems || this.settings.callback()
|
||||
}, t.prototype.finalizeActivation = function(t) {
|
||||
this.settings.docWriteSimulator && !t.async && this.settings.docWriteSimulator.flushWrittenContentAndDisable(), j.updateInlineHandlers(), o(t.placeholder)
|
||||
}, t.prototype.activateScript = function(t) {
|
||||
var n = t.script,
|
||||
r = t.placeholder,
|
||||
o = t.external,
|
||||
i = t.async,
|
||||
a = r.parentNode;
|
||||
if (!document.contains(r)) return e("Placeholder for script \n" + n.outerHTML + "\n was detached from document.", "Script will not be executed."), null;
|
||||
var c = this.settings.blocking && o && !i ? l(n) : u(n);
|
||||
return c ? (a.insertBefore(c, r), c) : (e("Failed to create activatable copy of script \n" + n.outerHTML + "\n", "Script will not be executed."), null)
|
||||
}, t
|
||||
}(), W = "data-cf-settings", R = "|", T = "data-cf-modified-", B = void 0;
|
||||
! function() {
|
||||
var t = document.currentScript;
|
||||
if (t) {
|
||||
var n = m(t);
|
||||
n ? (o(t), b(n), j.updateInlineHandlers(), n.bailout ? S(n.nonce) : (g(), w(n.nonce))) : e("Activator script doesn't have settings. No scripts will be executed.")
|
||||
} else e("Can't obtain activator script. No scripts will be executed.")
|
||||
}()
|
||||
}();
|
||||
238
safekiso-server/modules/base/wwwroot/admindek/js/script.js
Normal file
238
safekiso-server/modules/base/wwwroot/admindek/js/script.js
Normal file
@@ -0,0 +1,238 @@
|
||||
"use strict";
|
||||
$(document).ready(function() {
|
||||
// card js start
|
||||
$(".card-header-right .close-card").on('click', function() {
|
||||
var $this = $(this);
|
||||
$this.parents('.card').animate({
|
||||
'opacity': '0',
|
||||
'-webkit-transform': 'scale3d(.3, .3, .3)',
|
||||
'transform': 'scale3d(.3, .3, .3)'
|
||||
});
|
||||
|
||||
setTimeout(function() {
|
||||
$this.parents('.card').remove();
|
||||
}, 800);
|
||||
});
|
||||
$(".card-header-right .reload-card").on('click', function() {
|
||||
var $this = $(this);
|
||||
$this.parents('.card').addClass("card-load");
|
||||
$this.parents('.card').append('<div class="card-loader"><i class="feather icon-radio rotate-refresh"></div>');
|
||||
setTimeout(function() {
|
||||
$this.parents('.card').children(".card-loader").remove();
|
||||
$this.parents('.card').removeClass("card-load");
|
||||
}, 3000);
|
||||
});
|
||||
$(".card-header-right .card-option .open-card-option").on('click', function() {
|
||||
var $this = $(this);
|
||||
if ($this.hasClass('icon-x')) {
|
||||
$this.parents('.card-option').animate({
|
||||
'width': '30px',
|
||||
});
|
||||
$this.parents('.card-option').children('li').children(".open-card-option").removeClass("icon-x").fadeIn('slow');
|
||||
$this.parents('.card-option').children('li').children(".open-card-option").addClass("icon-chevron-left").fadeIn('slow');
|
||||
$this.parents('.card-option').children(".first-opt").fadeIn();
|
||||
} else {
|
||||
$this.parents('.card-option').animate({
|
||||
'width': '130px',
|
||||
});
|
||||
$this.parents('.card-option').children('li').children(".open-card-option").addClass("icon-x").fadeIn('slow');
|
||||
$this.parents('.card-option').children('li').children(".open-card-option").removeClass("icon-chevron-left").fadeIn('slow');
|
||||
$this.parents('.card-option').children(".first-opt").fadeOut();
|
||||
}
|
||||
});
|
||||
$(".card-header-right .minimize-card").on('click', function() {
|
||||
var $this = $(this);
|
||||
var port = $($this.parents('.card'));
|
||||
var card = $(port).children('.card-block').slideToggle();
|
||||
$(this).toggleClass("icon-minus").fadeIn('slow');
|
||||
$(this).toggleClass("icon-plus").fadeIn('slow');
|
||||
});
|
||||
$(".card-header-right .full-card").on('click', function() {
|
||||
var $this = $(this);
|
||||
var port = $($this.parents('.card'));
|
||||
port.toggleClass("full-card");
|
||||
$(this).toggleClass("icon-minimize");
|
||||
$(this).toggleClass("icon-maximize");
|
||||
});
|
||||
$("#more-details").on('click', function() {
|
||||
$(".more-details").slideToggle(500);
|
||||
});
|
||||
$(".mobile-options").on('click', function() {
|
||||
$(".navbar-container .nav-right").slideToggle('slow');
|
||||
});
|
||||
$(".search-btn").on('click', function() {
|
||||
$(".main-search").addClass('open');
|
||||
$('.main-search .form-control').animate({
|
||||
'width': '200px',
|
||||
});
|
||||
});
|
||||
$(".search-close").on('click', function() {
|
||||
$('.main-search .form-control').animate({
|
||||
'width': '0',
|
||||
});
|
||||
setTimeout(function() {
|
||||
$(".main-search").removeClass('open');
|
||||
}, 300);
|
||||
});
|
||||
// card js end
|
||||
$("#styleSelector .style-cont").slimScroll({
|
||||
setTop: "1px",
|
||||
height: "calc(100vh - 480px)",
|
||||
});
|
||||
/*chatbar js start*/
|
||||
/*chat box scroll*/
|
||||
var a = $(window).height() - 80;
|
||||
$(".main-friend-list").slimScroll({
|
||||
height: a,
|
||||
allowPageScroll: false,
|
||||
wheelStep: 5
|
||||
});
|
||||
var a = $(window).height() - 155;
|
||||
$(".main-friend-chat").slimScroll({
|
||||
height: a,
|
||||
allowPageScroll: false,
|
||||
wheelStep: 5
|
||||
});
|
||||
|
||||
// search
|
||||
$("#search-friends").on("keyup", function() {
|
||||
var g = $(this).val().toLowerCase();
|
||||
$(".userlist-box .media-body .chat-header").each(function() {
|
||||
var s = $(this).text().toLowerCase();
|
||||
$(this).closest('.userlist-box')[s.indexOf(g) !== -1 ? 'show' : 'hide']();
|
||||
});
|
||||
});
|
||||
|
||||
// open chat box
|
||||
$('.displayChatbox').on('click', function() {
|
||||
var my_val = $('.pcoded').attr('vertical-placement');
|
||||
if (my_val == 'right') {
|
||||
var options = {
|
||||
direction: 'left'
|
||||
};
|
||||
} else {
|
||||
var options = {
|
||||
direction: 'right'
|
||||
};
|
||||
}
|
||||
$('.showChat').toggle('slide', options, 500);
|
||||
});
|
||||
|
||||
//open friend chat
|
||||
$('.userlist-box').on('click', function() {
|
||||
var my_val = $('.pcoded').attr('vertical-placement');
|
||||
if (my_val == 'right') {
|
||||
var options = {
|
||||
direction: 'left'
|
||||
};
|
||||
} else {
|
||||
var options = {
|
||||
direction: 'right'
|
||||
};
|
||||
}
|
||||
$('.showChat_inner').toggle('slide', options, 500);
|
||||
});
|
||||
//back to main chatbar
|
||||
$('.back_chatBox').on('click', function() {
|
||||
var my_val = $('.pcoded').attr('vertical-placement');
|
||||
if (my_val == 'right') {
|
||||
var options = {
|
||||
direction: 'left'
|
||||
};
|
||||
} else {
|
||||
var options = {
|
||||
direction: 'right'
|
||||
};
|
||||
}
|
||||
$('.showChat_inner').toggle('slide', options, 500);
|
||||
$('.showChat').css('display', 'block');
|
||||
});
|
||||
$('.back_friendlist').on('click', function() {
|
||||
var my_val = $('.pcoded').attr('vertical-placement');
|
||||
if (my_val == 'right') {
|
||||
var options = {
|
||||
direction: 'left'
|
||||
};
|
||||
} else {
|
||||
var options = {
|
||||
direction: 'right'
|
||||
};
|
||||
}
|
||||
$('.p-chat-user').toggle('slide', options, 500);
|
||||
$('.showChat').css('display', 'block');
|
||||
});
|
||||
// /*chatbar js end*/
|
||||
$('[data-toggle="tooltip"]').tooltip();
|
||||
|
||||
// wave effect js
|
||||
Waves.init();
|
||||
Waves.attach('.flat-buttons', ['waves-button']);
|
||||
Waves.attach('.float-buttons', ['waves-button', 'waves-float']);
|
||||
Waves.attach('.float-button-light', ['waves-button', 'waves-float', 'waves-light']);
|
||||
Waves.attach('.flat-buttons', ['waves-button', 'waves-float', 'waves-light', 'flat-buttons']);
|
||||
|
||||
// $('#mobile-collapse i').addClass('icon-toggle-right');
|
||||
// $('#mobile-collapse').on('click', function() {
|
||||
// $('#mobile-collapse i').toggleClass('icon-toggle-right');
|
||||
// $('#mobile-collapse i').toggleClass('icon-toggle-left');
|
||||
// });
|
||||
// materia form
|
||||
|
||||
$('.form-control').on('blur', function() {
|
||||
if ($(this).val().length > 0) {
|
||||
$(this).addClass("fill");
|
||||
} else {
|
||||
$(this).removeClass("fill");
|
||||
}
|
||||
});
|
||||
$('.form-control').on('focus', function() {
|
||||
$(this).addClass("fill");
|
||||
});
|
||||
$('#mobile-collapse i').addClass('icon-toggle-right');
|
||||
$('#mobile-collapse').on('click', function() {
|
||||
$('#mobile-collapse i').toggleClass('icon-toggle-right');
|
||||
$('#mobile-collapse i').toggleClass('icon-toggle-left');
|
||||
});
|
||||
});
|
||||
$(document).ready(function() {
|
||||
var $window = $(window);
|
||||
// $('.loader-bar').animate({
|
||||
// width: $window.width()
|
||||
// }, 1000);
|
||||
// setTimeout(function() {
|
||||
// while ($('.loader-bar').width() == $window.width()) {
|
||||
// $(window).on('load',function(){
|
||||
$('.loader-bg').fadeOut();
|
||||
// });
|
||||
|
||||
// break;
|
||||
|
||||
// }
|
||||
// }, 2000);
|
||||
});
|
||||
|
||||
// toggle full screen
|
||||
function toggleFullScreen() {
|
||||
var a = $(window).height() - 10;
|
||||
|
||||
if (!document.fullscreenElement && // alternative standard method
|
||||
!document.mozFullScreenElement && !document.webkitFullscreenElement) { // current working methods
|
||||
if (document.documentElement.requestFullscreen) {
|
||||
document.documentElement.requestFullscreen();
|
||||
} else if (document.documentElement.mozRequestFullScreen) {
|
||||
document.documentElement.mozRequestFullScreen();
|
||||
} else if (document.documentElement.webkitRequestFullscreen) {
|
||||
document.documentElement.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT);
|
||||
}
|
||||
} else {
|
||||
if (document.cancelFullScreen) {
|
||||
document.cancelFullScreen();
|
||||
} else if (document.mozCancelFullScreen) {
|
||||
document.mozCancelFullScreen();
|
||||
} else if (document.webkitCancelFullScreen) {
|
||||
document.webkitCancelFullScreen();
|
||||
}
|
||||
}
|
||||
$('.full-screen').toggleClass('icon-maximize');
|
||||
$('.full-screen').toggleClass('icon-minimize');
|
||||
}
|
||||
242
safekiso-server/modules/base/wwwroot/admindek/js/script.min.js
vendored
Normal file
242
safekiso-server/modules/base/wwwroot/admindek/js/script.min.js
vendored
Normal file
@@ -0,0 +1,242 @@
|
||||
"use strict";
|
||||
$(document).ready(function() {
|
||||
// card js start
|
||||
$(".card-header-right .close-card").on('click', function() {
|
||||
var $this = $(this);
|
||||
$this.parents('.card').animate({
|
||||
'opacity': '0',
|
||||
'-webkit-transform': 'scale3d(.3, .3, .3)',
|
||||
'transform': 'scale3d(.3, .3, .3)'
|
||||
});
|
||||
|
||||
setTimeout(function() {
|
||||
$this.parents('.card').remove();
|
||||
}, 800);
|
||||
});
|
||||
$(".card-header-right .reload-card").on('click', function() {
|
||||
var $this = $(this);
|
||||
$this.parents('.card').addClass("card-load");
|
||||
$this.parents('.card').append('<div class="card-loader"><i class="feather icon-radio rotate-refresh"></div>');
|
||||
setTimeout(function() {
|
||||
$this.parents('.card').children(".card-loader").remove();
|
||||
$this.parents('.card').removeClass("card-load");
|
||||
}, 3000);
|
||||
});
|
||||
$(".card-header-right .card-option .open-card-option").on('click', function() {
|
||||
var $this = $(this);
|
||||
if ($this.hasClass('icon-x')) {
|
||||
$this.parents('.card-option').animate({
|
||||
'width': '30px',
|
||||
});
|
||||
$this.parents('.card-option').children('li').children(".open-card-option").removeClass("icon-x").fadeIn('slow');
|
||||
$this.parents('.card-option').children('li').children(".open-card-option").addClass("icon-chevron-left").fadeIn('slow');
|
||||
$this.parents('.card-option').children(".first-opt").fadeIn();
|
||||
} else {
|
||||
$this.parents('.card-option').animate({
|
||||
'width': '130px',
|
||||
});
|
||||
$this.parents('.card-option').children('li').children(".open-card-option").addClass("icon-x").fadeIn('slow');
|
||||
$this.parents('.card-option').children('li').children(".open-card-option").removeClass("icon-chevron-left").fadeIn('slow');
|
||||
$this.parents('.card-option').children(".first-opt").fadeOut();
|
||||
}
|
||||
});
|
||||
$(".card-header-right .minimize-card").on('click', function() {
|
||||
var $this = $(this);
|
||||
var port = $($this.parents('.card'));
|
||||
var card = $(port).children('.card-block').slideToggle();
|
||||
$(this).toggleClass("icon-minus").fadeIn('slow');
|
||||
$(this).toggleClass("icon-plus").fadeIn('slow');
|
||||
});
|
||||
$(".card-header-right .full-card").on('click', function() {
|
||||
var $this = $(this);
|
||||
var port = $($this.parents('.card'));
|
||||
port.toggleClass("full-card");
|
||||
$(this).toggleClass("icon-minimize");
|
||||
$(this).toggleClass("icon-maximize");
|
||||
});
|
||||
$("#more-details").on('click', function() {
|
||||
$(".more-details").slideToggle(500);
|
||||
});
|
||||
$(".mobile-options").on('click', function() {
|
||||
$(".navbar-container .nav-right").slideToggle('slow');
|
||||
});
|
||||
$(".search-btn").on('click', function() {
|
||||
$(".main-search").addClass('open');
|
||||
$('.main-search .form-control').animate({
|
||||
'width': '200px',
|
||||
});
|
||||
});
|
||||
$(".search-close").on('click', function() {
|
||||
$('.main-search .form-control').animate({
|
||||
'width': '0',
|
||||
});
|
||||
setTimeout(function() {
|
||||
$(".main-search").removeClass('open');
|
||||
}, 300);
|
||||
});
|
||||
// card js end
|
||||
$("#styleSelector .style-cont").slimScroll({
|
||||
setTop: "1px",
|
||||
height: "calc(100vh - 480px)",
|
||||
});
|
||||
/*chatbar js start*/
|
||||
/*chat box scroll*/
|
||||
var a = $(window).height() - 80;
|
||||
$(".main-friend-list").slimScroll({
|
||||
height: a,
|
||||
allowPageScroll: false,
|
||||
wheelStep: 5
|
||||
});
|
||||
var a = $(window).height() - 155;
|
||||
$(".main-friend-chat").slimScroll({
|
||||
height: a,
|
||||
allowPageScroll: false,
|
||||
wheelStep: 5
|
||||
});
|
||||
|
||||
// search
|
||||
$("#search-friends").on("keyup", function() {
|
||||
var g = $(this).val().toLowerCase();
|
||||
$(".userlist-box .media-body .chat-header").each(function() {
|
||||
var s = $(this).text().toLowerCase();
|
||||
$(this).closest('.userlist-box')[s.indexOf(g) !== -1 ? 'show' : 'hide']();
|
||||
});
|
||||
});
|
||||
|
||||
// open chat box
|
||||
$('.displayChatbox').on('click', function() {
|
||||
var my_val = $('.pcoded').attr('vertical-placement');
|
||||
if (my_val == 'right') {
|
||||
var options = {
|
||||
direction: 'left'
|
||||
};
|
||||
} else {
|
||||
var options = {
|
||||
direction: 'right'
|
||||
};
|
||||
}
|
||||
$('.showChat').toggle('slide', options, 500);
|
||||
});
|
||||
|
||||
//open friend chat
|
||||
$('.userlist-box').on('click', function() {
|
||||
var my_val = $('.pcoded').attr('vertical-placement');
|
||||
if (my_val == 'right') {
|
||||
var options = {
|
||||
direction: 'left'
|
||||
};
|
||||
} else {
|
||||
var options = {
|
||||
direction: 'right'
|
||||
};
|
||||
}
|
||||
$('.showChat_inner').toggle('slide', options, 500);
|
||||
});
|
||||
//back to main chatbar
|
||||
$('.back_chatBox').on('click', function() {
|
||||
var my_val = $('.pcoded').attr('vertical-placement');
|
||||
if (my_val == 'right') {
|
||||
var options = {
|
||||
direction: 'left'
|
||||
};
|
||||
} else {
|
||||
var options = {
|
||||
direction: 'right'
|
||||
};
|
||||
}
|
||||
$('.showChat_inner').toggle('slide', options, 500);
|
||||
$('.showChat').css('display', 'block');
|
||||
});
|
||||
$('.back_friendlist').on('click', function() {
|
||||
var my_val = $('.pcoded').attr('vertical-placement');
|
||||
if (my_val == 'right') {
|
||||
var options = {
|
||||
direction: 'left'
|
||||
};
|
||||
} else {
|
||||
var options = {
|
||||
direction: 'right'
|
||||
};
|
||||
}
|
||||
$('.p-chat-user').toggle('slide', options, 500);
|
||||
$('.showChat').css('display', 'block');
|
||||
});
|
||||
// /*chatbar js end*/
|
||||
$('[data-toggle="tooltip"]').tooltip();
|
||||
|
||||
// wave effect js
|
||||
Waves.init();
|
||||
Waves.attach('.flat-buttons', ['waves-button']);
|
||||
Waves.attach('.float-buttons', ['waves-button', 'waves-float']);
|
||||
Waves.attach('.float-button-light', ['waves-button', 'waves-float', 'waves-light']);
|
||||
Waves.attach('.flat-buttons', ['waves-button', 'waves-float', 'waves-light', 'flat-buttons']);
|
||||
|
||||
// $('#mobile-collapse i').addClass('icon-toggle-right');
|
||||
// $('#mobile-collapse').on('click', function() {
|
||||
// $('#mobile-collapse i').toggleClass('icon-toggle-right');
|
||||
// $('#mobile-collapse i').toggleClass('icon-toggle-left');
|
||||
// });
|
||||
// materia form
|
||||
|
||||
$('.form-control').on('blur', function() {
|
||||
|
||||
if ($(this).val().length > 0) {
|
||||
$(this).addClass("fill");
|
||||
} else {
|
||||
$(this).removeClass("fill");
|
||||
}
|
||||
|
||||
});
|
||||
$('.form-control').on('focus', function() {
|
||||
|
||||
$(this).addClass("fill");
|
||||
|
||||
});
|
||||
$('#mobile-collapse i').addClass('icon-toggle-right');
|
||||
$('#mobile-collapse').on('click', function() {
|
||||
$('#mobile-collapse i').toggleClass('icon-toggle-right');
|
||||
$('#mobile-collapse i').toggleClass('icon-toggle-left');
|
||||
});
|
||||
});
|
||||
$(document).ready(function() {
|
||||
var $window = $(window);
|
||||
// $('.loader-bar').animate({
|
||||
// width: $window.width()
|
||||
// }, 1000);
|
||||
// setTimeout(function() {
|
||||
// while ($('.loader-bar').width() == $window.width()) {
|
||||
// $(window).on('load',function(){
|
||||
$('.loader-bg').fadeOut();
|
||||
// });
|
||||
|
||||
// break;
|
||||
|
||||
// }
|
||||
// }, 2000);
|
||||
});
|
||||
|
||||
// toggle full screen
|
||||
function toggleFullScreen() {
|
||||
var a = $(window).height() - 10;
|
||||
|
||||
if (!document.fullscreenElement && // alternative standard method
|
||||
!document.mozFullScreenElement && !document.webkitFullscreenElement) { // current working methods
|
||||
if (document.documentElement.requestFullscreen) {
|
||||
document.documentElement.requestFullscreen();
|
||||
} else if (document.documentElement.mozRequestFullScreen) {
|
||||
document.documentElement.mozRequestFullScreen();
|
||||
} else if (document.documentElement.webkitRequestFullscreen) {
|
||||
document.documentElement.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT);
|
||||
}
|
||||
} else {
|
||||
if (document.cancelFullScreen) {
|
||||
document.cancelFullScreen();
|
||||
} else if (document.mozCancelFullScreen) {
|
||||
document.mozCancelFullScreen();
|
||||
} else if (document.webkitCancelFullScreen) {
|
||||
document.webkitCancelFullScreen();
|
||||
}
|
||||
}
|
||||
$('.full-screen').toggleClass('icon-maximize');
|
||||
$('.full-screen').toggleClass('icon-minimize');
|
||||
}
|
||||
@@ -0,0 +1,157 @@
|
||||
(function($) {
|
||||
$.extend($.summernote.lang, {
|
||||
'ko-KR': {
|
||||
font: {
|
||||
bold: '굵게',
|
||||
italic: '기울임꼴',
|
||||
underline: '밑줄',
|
||||
clear: '서식 지우기',
|
||||
height: '줄 간격',
|
||||
name: '글꼴',
|
||||
superscript: '위 첨자',
|
||||
subscript: '아래 첨자',
|
||||
strikethrough: '취소선',
|
||||
size: '글자 크기',
|
||||
},
|
||||
image: {
|
||||
image: '그림',
|
||||
insert: '그림 삽입',
|
||||
resizeFull: '100% 크기로 변경',
|
||||
resizeHalf: '50% 크기로 변경',
|
||||
resizeQuarter: '25% 크기로 변경',
|
||||
resizeNone: '원본 크기',
|
||||
floatLeft: '왼쪽 정렬',
|
||||
floatRight: '오른쪽 정렬',
|
||||
floatNone: '정렬하지 않음',
|
||||
shapeRounded: '스타일: 둥근 모서리',
|
||||
shapeCircle: '스타일: 원형',
|
||||
shapeThumbnail: '스타일: 액자',
|
||||
shapeNone: '스타일: 없음',
|
||||
dragImageHere: '텍스트 혹은 사진을 이곳으로 끌어오세요',
|
||||
dropImage: '텍스트 혹은 사진을 내려놓으세요',
|
||||
selectFromFiles: '파일 선택',
|
||||
maximumFileSize: '최대 파일 크기',
|
||||
maximumFileSizeError: '최대 파일 크기를 초과했습니다.',
|
||||
url: '사진 URL',
|
||||
remove: '사진 삭제',
|
||||
original: '원본',
|
||||
},
|
||||
video: {
|
||||
video: '동영상',
|
||||
videoLink: '동영상 링크',
|
||||
insert: '동영상 삽입',
|
||||
url: '동영상 URL',
|
||||
providers: '(YouTube, Vimeo, Vine, Instagram, DailyMotion, Youku 사용 가능)',
|
||||
},
|
||||
link: {
|
||||
link: '링크',
|
||||
insert: '링크 삽입',
|
||||
unlink: '링크 삭제',
|
||||
edit: '수정',
|
||||
textToDisplay: '링크에 표시할 내용',
|
||||
url: '이동할 URL',
|
||||
openInNewWindow: '새창으로 열기',
|
||||
},
|
||||
table: {
|
||||
table: '표',
|
||||
addRowAbove: '위에 행 삽입',
|
||||
addRowBelow: '아래에 행 삽입',
|
||||
addColLeft: '왼쪽에 열 삽입',
|
||||
addColRight: '오른쪽에 열 삽입',
|
||||
delRow: '행 지우기',
|
||||
delCol: '열 지우기',
|
||||
delTable: '표 삭제',
|
||||
},
|
||||
hr: {
|
||||
insert: '구분선 삽입',
|
||||
},
|
||||
style: {
|
||||
style: '스타일',
|
||||
p: '본문',
|
||||
blockquote: '인용구',
|
||||
pre: '코드',
|
||||
h1: '제목 1',
|
||||
h2: '제목 2',
|
||||
h3: '제목 3',
|
||||
h4: '제목 4',
|
||||
h5: '제목 5',
|
||||
h6: '제목 6',
|
||||
},
|
||||
lists: {
|
||||
unordered: '글머리 기호',
|
||||
ordered: '번호 매기기',
|
||||
},
|
||||
options: {
|
||||
help: '도움말',
|
||||
fullscreen: '전체 화면',
|
||||
codeview: '코드 보기',
|
||||
},
|
||||
paragraph: {
|
||||
paragraph: '문단 정렬',
|
||||
outdent: '내어쓰기',
|
||||
indent: '들여쓰기',
|
||||
left: '왼쪽 정렬',
|
||||
center: '가운데 정렬',
|
||||
right: '오른쪽 정렬',
|
||||
justify: '양쪽 정렬',
|
||||
},
|
||||
color: {
|
||||
recent: '마지막으로 사용한 색',
|
||||
more: '다른 색 선택',
|
||||
background: '배경색',
|
||||
foreground: '글자색',
|
||||
transparent: '투명',
|
||||
setTransparent: '투명으로 설정',
|
||||
reset: '취소',
|
||||
resetToDefault: '기본값으로 설정',
|
||||
cpSelect: '고르다',
|
||||
},
|
||||
shortcut: {
|
||||
shortcuts: '키보드 단축키',
|
||||
close: '닫기',
|
||||
textFormatting: '글자 스타일 적용',
|
||||
action: '기능',
|
||||
paragraphFormatting: '문단 스타일 적용',
|
||||
documentStyle: '문서 스타일 적용',
|
||||
extraKeys: '추가 키',
|
||||
},
|
||||
help: {
|
||||
'insertParagraph': '문단 삽입',
|
||||
'undo': '마지막 명령 취소',
|
||||
'redo': '마지막 명령 재실행',
|
||||
'tab': '탭',
|
||||
'untab': '탭 제거',
|
||||
'bold': '굵은 글자로 설정',
|
||||
'italic': '기울임꼴 글자로 설정',
|
||||
'underline': '밑줄 글자로 설정',
|
||||
'strikethrough': '취소선 글자로 설정',
|
||||
'removeFormat': '서식 삭제',
|
||||
'justifyLeft': '왼쪽 정렬하기',
|
||||
'justifyCenter': '가운데 정렬하기',
|
||||
'justifyRight': '오른쪽 정렬하기',
|
||||
'justifyFull': '좌우채움 정렬하기',
|
||||
'insertUnorderedList': '글머리 기호 켜고 끄기',
|
||||
'insertOrderedList': '번호 매기기 켜고 끄기',
|
||||
'outdent': '현재 문단 내어쓰기',
|
||||
'indent': '현재 문단 들여쓰기',
|
||||
'formatPara': '현재 블록의 포맷을 문단(P)으로 변경',
|
||||
'formatH1': '현재 블록의 포맷을 제목1(H1)로 변경',
|
||||
'formatH2': '현재 블록의 포맷을 제목2(H2)로 변경',
|
||||
'formatH3': '현재 블록의 포맷을 제목3(H3)로 변경',
|
||||
'formatH4': '현재 블록의 포맷을 제목4(H4)로 변경',
|
||||
'formatH5': '현재 블록의 포맷을 제목5(H5)로 변경',
|
||||
'formatH6': '현재 블록의 포맷을 제목6(H6)로 변경',
|
||||
'insertHorizontalRule': '구분선 삽입',
|
||||
'linkDialog.show': '링크 대화상자 열기',
|
||||
},
|
||||
history: {
|
||||
undo: '실행 취소',
|
||||
redo: '재실행',
|
||||
},
|
||||
specialChar: {
|
||||
specialChar: '특수문자',
|
||||
select: '특수문자를 선택하세요',
|
||||
},
|
||||
},
|
||||
});
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,26 @@
|
||||
"use strict";
|
||||
$(document).ready(function() {
|
||||
setTimeout(function(){
|
||||
var swiper = new Swiper('.swiper-container', {
|
||||
pagination: '.swiper-pagination',
|
||||
slidesPerView: 5,
|
||||
paginationClickable: true,
|
||||
spaceBetween: 20,
|
||||
loop: true,
|
||||
breakpoints: {
|
||||
// when window width is <= 576px
|
||||
576: {
|
||||
slidesPerView: 1
|
||||
},
|
||||
// when window width is <= 992px
|
||||
992: {
|
||||
slidesPerView: 2
|
||||
},
|
||||
// when window width is <= 1200px
|
||||
1200: {
|
||||
slidesPerView: 3
|
||||
}
|
||||
}
|
||||
});
|
||||
},350);
|
||||
});
|
||||
5
safekiso-server/modules/base/wwwroot/admindek/js/underscore-min.js
vendored
Normal file
5
safekiso-server/modules/base/wwwroot/admindek/js/underscore-min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
123
safekiso-server/modules/base/wwwroot/admindek/js/vertical/horizontal-layout.min.js
vendored
Normal file
123
safekiso-server/modules/base/wwwroot/admindek/js/vertical/horizontal-layout.min.js
vendored
Normal file
@@ -0,0 +1,123 @@
|
||||
"use strict!";
|
||||
|
||||
function handlemenutype(e) {
|
||||
$(".pcoded").attr("nav-type", e)
|
||||
}
|
||||
$(document).ready(function() {
|
||||
$(".pcoded-navbar .pcoded-hasmenu").attr("subitem-icon", "style1"), $("#pcoded").pcodedmenu({
|
||||
themelayout: "horizontal",
|
||||
horizontalMenuplacement: "top",
|
||||
horizontalBrandItem: !0,
|
||||
horizontalLeftNavItem: !0,
|
||||
horizontalRightItem: !0,
|
||||
horizontalSearchItem: !0,
|
||||
horizontalMobileMenu: !0,
|
||||
MenuTrigger: "hover",
|
||||
SubMenuTrigger: "hover",
|
||||
activeMenuClass: "active",
|
||||
ThemeBackgroundPattern: "theme1",
|
||||
HeaderBackground: "theme1",
|
||||
LHeaderBackground: "theme1",
|
||||
NavbarBackground: "themelight1",
|
||||
ActiveItemBackground: "theme1",
|
||||
SubItemBackground: "theme2",
|
||||
LogoTheme: "theme1",
|
||||
menutype: "st2",
|
||||
freamtype: "theme1",
|
||||
layouttype: "light",
|
||||
ActiveItemStyle: "style1",
|
||||
ItemBorder: !0,
|
||||
ItemBorderStyle: "none",
|
||||
SubItemBorder: !0,
|
||||
DropDownIconStyle: "style1",
|
||||
FixedNavbarPosition: !1,
|
||||
FixedHeaderPosition: !1,
|
||||
horizontalNavIsCentered: !1,
|
||||
horizontalstickynavigation: !1,
|
||||
horizontalNavigationMenuIcon: !0
|
||||
}),
|
||||
function() {
|
||||
$(".theme-color > a.Layout-type").on("click", function() {
|
||||
var e = $(this).attr("layout-type");
|
||||
$(".pcoded").attr("layout-type", e), "dark" == e && ($(".pcoded-header").attr("header-theme", "theme6"), $(".pcoded-navbar").attr("navbar-theme", "theme1"), $(".pcoded-navbar").attr("active-item-theme", "theme1"), $(".pcoded").attr("fream-type", "theme1"), $("body").addClass("dark"), $("body").attr("themebg-pattern", "theme1"), $(".pcoded-navigation-label").attr("menu-title-theme", "theme1")), "light" == e && ($(".pcoded-header").attr("header-theme", "themelight1"), $(".pcoded-navbar").attr("navbar-theme", "themelight1"), $(".pcoded-navigation-label").attr("menu-title-theme", "theme2"), $(".pcoded-navbar").attr("active-item-theme", "theme1"), $(".pcoded").attr("fream-type", "theme1"), $("body").removeClass("dark"), $("body").attr("themebg-pattern", "theme1"))
|
||||
})
|
||||
}(),
|
||||
function() {
|
||||
$(".theme-color > a.leftheader-theme").on("click", function() {
|
||||
var e = $(this).attr("menu-caption");
|
||||
$(".pcoded-navigation-label").attr("menu-title-theme", e)
|
||||
})
|
||||
}(),
|
||||
function() {
|
||||
$(".theme-color > a.header-theme-full").on("click", function() {
|
||||
var e = $(this).attr("header-theme"),
|
||||
t = $(this).attr("active-item-color");
|
||||
$(".pcoded-header").attr("header-theme", e), $(".navbar-logo").attr("logo-theme", e), $(".pcoded-navbar").attr("active-item-theme", t), $(".pcoded").attr("fream-type", e), $("body").attr("themebg-pattern", e), "theme6" == e && $(".pcoded-navbar").attr("active-item-theme", "theme1")
|
||||
})
|
||||
}(),
|
||||
function() {
|
||||
$(".theme-color > a.header-theme").on("click", function() {
|
||||
var e = $(this).attr("header-theme"),
|
||||
t = $(this).attr("active-item-color");
|
||||
$(".pcoded-header").attr("header-theme", e), $(".pcoded-navbar").attr("active-item-theme", t), $(".pcoded").attr("fream-type", e), $("body").attr("themebg-pattern", e), "theme6" == e && $(".pcoded-navbar").attr("active-item-theme", "theme1")
|
||||
})
|
||||
}(),
|
||||
function() {
|
||||
$(".theme-color > a.navbar-theme").on("click", function() {
|
||||
var e = $(this).attr("navbar-theme");
|
||||
$(".pcoded-navbar").attr("navbar-theme", e), "themelight1" == e && $(".pcoded-navigation-label").attr("menu-title-theme", "theme2"), "theme1" == e && $(".pcoded-navigation-label").attr("menu-title-theme", "theme1")
|
||||
})
|
||||
}(),
|
||||
function() {
|
||||
$(".theme-color > a.active-item-theme").on("click", function() {
|
||||
var e = $(this).attr("active-item-theme");
|
||||
$(".pcoded-navbar").attr("active-item-theme", e)
|
||||
})
|
||||
}(),
|
||||
function() {
|
||||
$(".theme-color > a.themebg-pattern").on("click", function() {
|
||||
var e = $(this).attr("themebg-pattern");
|
||||
$("body").attr("themebg-pattern", e)
|
||||
})
|
||||
}(),
|
||||
function() {
|
||||
$("#theme-layout").change(function() {
|
||||
$(this).is(":checked") ? ($(".pcoded").attr("vertical-layout", "box"), $("#bg-pattern-visiblity").removeClass("d-none")) : ($(".pcoded").attr("vertical-layout", "wide"), $("#bg-pattern-visiblity").addClass("d-none"))
|
||||
})
|
||||
}(),
|
||||
function() {
|
||||
$("#vertical-menu-effect").val("shrink").on("change", function(e) {
|
||||
e = $(this).val(), $(".pcoded").attr("vertical-effect", e)
|
||||
})
|
||||
}(),
|
||||
function() {
|
||||
$("#vertical-border-style").val("solid").on("change", function(e) {
|
||||
e = $(this).val(), $(".pcoded-navbar .pcoded-item").attr("item-border-style", e)
|
||||
})
|
||||
}(),
|
||||
function() {
|
||||
$("#vertical-dropdown-icon").val("style1").on("change", function(e) {
|
||||
e = $(this).val(), $(".pcoded-navbar .pcoded-hasmenu").attr("dropdown-icon", e)
|
||||
})
|
||||
}(),
|
||||
function() {
|
||||
$("#vertical-subitem-icon").val("style5").on("change", function(e) {
|
||||
e = $(this).val(), $(".pcoded-navbar .pcoded-hasmenu").attr("subitem-icon", e)
|
||||
})
|
||||
}(),
|
||||
function() {
|
||||
$("#sidebar-position").change(function() {
|
||||
$(this).is(":checked") ? ($(".pcoded-navbar").attr("pcoded-navbar-position", "fixed"), $(".pcoded-header .pcoded-left-header").attr("pcoded-lheader-position", "fixed")) : ($(".pcoded-navbar").attr("pcoded-navbar-position", "absolute"), $(".pcoded-header .pcoded-left-header").attr("pcoded-lheader-position", "relative"))
|
||||
})
|
||||
}(),
|
||||
function() {
|
||||
$("#header-position").change(function() {
|
||||
$(this).is(":checked") ? ($(".pcoded-header").attr("pcoded-header-position", "fixed"), $(".pcoded-navbar").attr("pcoded-header-position", "fixed"), $(".pcoded-main-container").css("margin-top", $(".pcoded-header").outerHeight())) : ($(".pcoded-header").attr("pcoded-header-position", "relative"), $(".pcoded-navbar").attr("pcoded-header-position", "relative"), $(".pcoded-main-container").css("margin-top", "0px"))
|
||||
})
|
||||
}(),
|
||||
function() {
|
||||
$("#collapse-left-header").change(function() {
|
||||
$(this).is(":checked") ? ($(".pcoded-header, .pcoded ").removeClass("iscollapsed"), $(".pcoded-header, .pcoded").addClass("nocollapsed")) : ($(".pcoded-header, .pcoded").addClass("iscollapsed"), $(".pcoded-header, .pcoded").removeClass("nocollapsed"))
|
||||
})
|
||||
}()
|
||||
}), handlemenutype("st2");
|
||||
@@ -0,0 +1,275 @@
|
||||
"use strict!"
|
||||
$(document).ready(function() {
|
||||
// variable
|
||||
var noofdays = 1; // total no of days cookie will store
|
||||
var Navbarbg = "theme1"; // navbar color themelight1 / theme1
|
||||
var headerbg = "themelight1"; // header color theme1 / theme2 / theme3 / theme4 / theme5 / theme6
|
||||
var menucaption = "theme1"; // menu caption color theme1 / theme2 / theme3 / theme4 / theme5 / theme6 / theme7 / theme8 / theme9
|
||||
var bgpattern = "theme1"; // background color theme1 / theme2 / theme3 / theme4 / theme5 / theme6
|
||||
var activeitemtheme = "theme1"; // menu active color theme1 / theme2 / theme3 / theme4 / theme5 / theme6 / theme7 / theme8 / theme9 / theme10 / theme11 / theme12
|
||||
var frametype = "theme1"; // preset frame color theme1 / theme2 / theme3 / theme4 / theme5 / theme6
|
||||
var layout_type = "light"; // theme layout color dark / light
|
||||
var layout_width = "wide"; // theme layout size wide / box
|
||||
var menu_effect_desktop = "overlay"; // navbar effect in desktop shrink / overlay / push
|
||||
var menu_effect_tablet = "overlay"; // navbar effect in tablet shrink / overlay / push
|
||||
var menu_effect_phone = "overlay"; // navbar effect in phone shrink / overlay / push
|
||||
var menu_icon_style = "st2"; // navbar menu icon st1 / st2
|
||||
$("#pcoded").pcodedmenu({
|
||||
themelayout: 'vertical',
|
||||
verticalMenuplacement: 'left', // value should be left/right
|
||||
verticalMenulayout: layout_width,
|
||||
MenuTrigger: 'click', // click / hover
|
||||
SubMenuTrigger: 'click', // click / hover
|
||||
activeMenuClass: 'active',
|
||||
ThemeBackgroundPattern: bgpattern,
|
||||
HeaderBackground: headerbg,
|
||||
LHeaderBackground: menucaption,
|
||||
NavbarBackground: Navbarbg,
|
||||
ActiveItemBackground: activeitemtheme,
|
||||
SubItemBackground: 'theme2',
|
||||
LogoTheme: 'theme6', // Value should be theme1/theme2/theme3/theme4/theme5/theme6
|
||||
ActiveItemStyle: 'style0',
|
||||
ItemBorder: true,
|
||||
ItemBorderStyle: 'solid',
|
||||
freamtype: frametype,
|
||||
SubItemBorder: false,
|
||||
DropDownIconStyle: 'style1', // Value should be style1,style2,style3
|
||||
menutype: menu_icon_style,
|
||||
layouttype: layout_type,
|
||||
FixedNavbarPosition: true, // Value should be true / false header postion
|
||||
FixedHeaderPosition: true, // Value should be true / false sidebar menu postion
|
||||
collapseVerticalLeftHeader: true,
|
||||
VerticalSubMenuItemIconStyle: 'style1', // value should be style1, style2, style3, style4, style5, style6
|
||||
VerticalNavigationView: 'view1',
|
||||
verticalMenueffect: {
|
||||
desktop: menu_effect_desktop,
|
||||
tablet: menu_effect_tablet,
|
||||
phone: menu_effect_phone,
|
||||
},
|
||||
defaultVerticalMenu: {
|
||||
desktop: "collapsed", // value should be offcanvas/collapsed/expanded/compact/compact-acc/fullpage/ex-popover/sub-expanded
|
||||
tablet: "offcanvas", // value should be offcanvas/collapsed/expanded/compact/fullpage/ex-popover/sub-expanded
|
||||
phone: "offcanvas", // value should be offcanvas/collapsed/expanded/compact/fullpage/ex-popover/sub-expanded
|
||||
},
|
||||
onToggleVerticalMenu: {
|
||||
desktop: "offcanvas", // value should be offcanvas/collapsed/expanded/compact/fullpage/ex-popover/sub-expanded
|
||||
tablet: "expanded", // value should be offcanvas/collapsed/expanded/compact/fullpage/ex-popover/sub-expanded
|
||||
phone: "expanded", // value should be offcanvas/collapsed/expanded/compact/fullpage/ex-popover/sub-expanded
|
||||
},
|
||||
});
|
||||
/* layout type Change function Start */
|
||||
function handlelayouttheme() {
|
||||
$('.theme-color > a.Layout-type').on("click", function() {
|
||||
var layout = $(this).attr("layout-type");
|
||||
$('.pcoded').attr("layout-type", layout);
|
||||
if (layout == 'dark') {
|
||||
$('.pcoded-header').attr("header-theme", "theme6");
|
||||
$('.pcoded-navbar').attr("navbar-theme", "theme1");
|
||||
$('.pcoded-navbar').attr("active-item-theme", "theme1");
|
||||
$('.pcoded').attr("fream-type", "theme1");
|
||||
$('body').addClass('dark');
|
||||
$('body').attr("themebg-pattern", "theme1");
|
||||
$('.pcoded-navigation-label').attr("menu-title-theme", "theme1");
|
||||
}
|
||||
if (layout == 'light') {
|
||||
$('.pcoded-header').attr("header-theme", "themelight1");
|
||||
$('.pcoded-navbar').attr("navbar-theme", "themelight1");
|
||||
$('.pcoded-navigation-label').attr("menu-title-theme", "theme2");
|
||||
$('.pcoded-navbar').attr("active-item-theme", "theme1");
|
||||
$('.pcoded').attr("fream-type", "theme1");
|
||||
$('body').removeClass('dark');
|
||||
$('body').attr("themebg-pattern", "theme1");
|
||||
}
|
||||
});
|
||||
};
|
||||
handlelayouttheme();
|
||||
|
||||
/* Left header Theme Change function Start */
|
||||
function handleleftheadertheme() {
|
||||
$('.theme-color > a.leftheader-theme').on("click", function() {
|
||||
var lheadertheme = $(this).attr("menu-caption");
|
||||
$('.pcoded-navigation-label').attr("menu-title-theme", lheadertheme);
|
||||
});
|
||||
};
|
||||
handleleftheadertheme();
|
||||
/* Left header Theme Change function Close */
|
||||
/* header Theme Change function Start */
|
||||
function handleheaderthemefull() {
|
||||
$('.theme-color > a.header-theme-full').on("click", function() {
|
||||
var headertheme = $(this).attr("header-theme");
|
||||
var activeitem = $(this).attr("active-item-color");
|
||||
$('.pcoded-header').attr("header-theme", headertheme);
|
||||
$('.navbar-logo').attr("logo-theme", headertheme);
|
||||
$('.pcoded-navbar').attr("active-item-theme", activeitem);
|
||||
$('.pcoded').attr("fream-type", headertheme);
|
||||
$('body').attr("themebg-pattern", headertheme);
|
||||
if (headertheme == "theme6") {
|
||||
$('.pcoded-navbar').attr("active-item-theme", "theme1");
|
||||
}
|
||||
});
|
||||
};
|
||||
handleheaderthemefull();
|
||||
|
||||
function handleheadertheme() {
|
||||
$('.theme-color > a.header-theme').on("click", function() {
|
||||
var headertheme = $(this).attr("header-theme");
|
||||
var activeitem = $(this).attr("active-item-color");
|
||||
$('.pcoded-header').attr("header-theme", headertheme);
|
||||
$('.pcoded-navbar').attr("active-item-theme", activeitem);
|
||||
$('.pcoded').attr("fream-type", headertheme);
|
||||
$('body').attr("themebg-pattern", headertheme);
|
||||
if (headertheme == "theme6") {
|
||||
$('.pcoded-navbar').attr("active-item-theme", "theme1");
|
||||
}
|
||||
});
|
||||
};
|
||||
handleheadertheme();
|
||||
/* header Theme Change function Close */
|
||||
/* Navbar Theme Change function Start */
|
||||
function handlenavbartheme() {
|
||||
$('.theme-color > a.navbar-theme').on("click", function() {
|
||||
var navbartheme = $(this).attr("navbar-theme");
|
||||
$('.pcoded-navbar').attr("navbar-theme", navbartheme);
|
||||
if (navbartheme == 'themelight1') {
|
||||
$('.pcoded-navigation-label').attr("menu-title-theme", "theme2");
|
||||
}
|
||||
if (navbartheme == 'theme1') {
|
||||
$('.pcoded-navigation-label').attr("menu-title-theme", "theme1");
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
handlenavbartheme();
|
||||
/* Navbar Theme Change function Close */
|
||||
/* Active Item Theme Change function Start */
|
||||
function handleactiveitemtheme() {
|
||||
$('.theme-color > a.active-item-theme').on("click", function() {
|
||||
var activeitemtheme = $(this).attr("active-item-theme");
|
||||
$('.pcoded-navbar').attr("active-item-theme", activeitemtheme);
|
||||
});
|
||||
};
|
||||
|
||||
handleactiveitemtheme();
|
||||
/* Active Item Theme Change function Close */
|
||||
|
||||
/* Theme background pattren Change function Start */
|
||||
function handlethemebgpattern() {
|
||||
$('.theme-color > a.themebg-pattern').on("click", function() {
|
||||
var themebgpattern = $(this).attr("themebg-pattern");
|
||||
$('body').attr("themebg-pattern", themebgpattern);
|
||||
});
|
||||
};
|
||||
|
||||
handlethemebgpattern();
|
||||
/* Theme background pattren Change function Close */
|
||||
|
||||
/* Theme Layout Change function start*/
|
||||
function handlethemeverticallayout() {
|
||||
$('#theme-layout').change(function() {
|
||||
if ($(this).is(":checked")) {
|
||||
$('.pcoded').attr('vertical-layout', "box");
|
||||
$('#bg-pattern-visiblity').removeClass('d-none');
|
||||
|
||||
} else {
|
||||
$('.pcoded').attr('vertical-layout', "wide");
|
||||
$('#bg-pattern-visiblity').addClass('d-none');
|
||||
}
|
||||
});
|
||||
};
|
||||
handlethemeverticallayout();
|
||||
/* Theme Layout Change function Close*/
|
||||
/* Menu effect change function start*/
|
||||
function handleverticalMenueffect() {
|
||||
$('#vertical-menu-effect').val('shrink').on('change', function(get_value) {
|
||||
get_value = $(this).val();
|
||||
$('.pcoded').attr('vertical-effect', get_value);
|
||||
});
|
||||
};
|
||||
|
||||
handleverticalMenueffect();
|
||||
/* Menu effect change function Close*/
|
||||
|
||||
/* Vertical Item border Style change function Start*/
|
||||
function handleverticalboderstyle() {
|
||||
$('#vertical-border-style').val('solid').on('change', function(get_value) {
|
||||
get_value = $(this).val();
|
||||
$('.pcoded-navbar .pcoded-item').attr('item-border-style', get_value);
|
||||
});
|
||||
};
|
||||
|
||||
handleverticalboderstyle();
|
||||
/* Vertical Item border Style change function Close*/
|
||||
|
||||
/* Vertical Dropdown Icon change function Start*/
|
||||
function handleVerticalDropDownIconStyle() {
|
||||
$('#vertical-dropdown-icon').val('style1').on('change', function(get_value) {
|
||||
get_value = $(this).val();
|
||||
$('.pcoded-navbar .pcoded-hasmenu').attr('dropdown-icon', get_value);
|
||||
});
|
||||
};
|
||||
|
||||
handleVerticalDropDownIconStyle();
|
||||
/* Vertical Dropdown Icon change function Close*/
|
||||
/* Vertical SubItem Icon change function Start*/
|
||||
|
||||
function handleVerticalSubMenuItemIconStyle() {
|
||||
$('#vertical-subitem-icon').val('style5').on('change', function(get_value) {
|
||||
get_value = $(this).val();
|
||||
$('.pcoded-navbar .pcoded-hasmenu').attr('subitem-icon', get_value);
|
||||
});
|
||||
};
|
||||
|
||||
handleVerticalSubMenuItemIconStyle();
|
||||
/* Vertical SubItem Icon change function Close*/
|
||||
/* Vertical Navbar Position change function Start*/
|
||||
function handlesidebarposition() {
|
||||
$('#sidebar-position').change(function() {
|
||||
if ($(this).is(":checked")) {
|
||||
$('.pcoded-navbar').attr("pcoded-navbar-position", 'fixed');
|
||||
$('.pcoded-header .pcoded-left-header').attr("pcoded-lheader-position", 'fixed');
|
||||
} else {
|
||||
$('.pcoded-navbar').attr("pcoded-navbar-position", 'absolute');
|
||||
$('.pcoded-header .pcoded-left-header').attr("pcoded-lheader-position", 'relative');
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
handlesidebarposition();
|
||||
/* Vertical Navbar Position change function Close*/
|
||||
/* Vertical Header Position change function Start*/
|
||||
function handleheaderposition() {
|
||||
$('#header-position').change(function() {
|
||||
if ($(this).is(":checked")) {
|
||||
$('.pcoded-header').attr("pcoded-header-position", 'fixed');
|
||||
$('.pcoded-navbar').attr("pcoded-header-position", 'fixed');
|
||||
$('.pcoded-main-container').css('margin-top', $(".pcoded-header").outerHeight());
|
||||
} else {
|
||||
$('.pcoded-header').attr("pcoded-header-position", 'relative');
|
||||
$('.pcoded-navbar').attr("pcoded-header-position", 'relative');
|
||||
$('.pcoded-main-container').css('margin-top', '0px');
|
||||
}
|
||||
});
|
||||
};
|
||||
handleheaderposition();
|
||||
/* Vertical Header Position change function Close*/
|
||||
/* collapseable Left Header Change Function Start here*/
|
||||
function handlecollapseLeftHeader() {
|
||||
$('#collapse-left-header').change(function() {
|
||||
if ($(this).is(":checked")) {
|
||||
$('.pcoded-header, .pcoded ').removeClass('iscollapsed');
|
||||
$('.pcoded-header, .pcoded').addClass('nocollapsed');
|
||||
} else {
|
||||
$('.pcoded-header, .pcoded').addClass('iscollapsed');
|
||||
$('.pcoded-header, .pcoded').removeClass('nocollapsed');
|
||||
}
|
||||
});
|
||||
};
|
||||
handlecollapseLeftHeader();
|
||||
/* collapseable Left Header Change Function Close here*/
|
||||
});
|
||||
|
||||
function handlemenutype(get_value) {
|
||||
$('.pcoded').attr('nav-type', get_value);
|
||||
};
|
||||
|
||||
handlemenutype("st2");
|
||||
@@ -0,0 +1,275 @@
|
||||
"use strict!"
|
||||
$(document).ready(function() {
|
||||
// variable
|
||||
var noofdays = 1; // total no of days cookie will store
|
||||
var Navbarbg = "theme1"; // navbar color themelight1 / theme1
|
||||
var headerbg = "themelight1"; // header color theme1 / theme2 / theme3 / theme4 / theme5 / theme6
|
||||
var menucaption = "theme1"; // menu caption color theme1 / theme2 / theme3 / theme4 / theme5 / theme6 / theme7 / theme8 / theme9
|
||||
var bgpattern = "theme1"; // background color theme1 / theme2 / theme3 / theme4 / theme5 / theme6
|
||||
var activeitemtheme = "theme1"; // menu active color theme1 / theme2 / theme3 / theme4 / theme5 / theme6 / theme7 / theme8 / theme9 / theme10 / theme11 / theme12
|
||||
var frametype = "theme1"; // preset frame color theme1 / theme2 / theme3 / theme4 / theme5 / theme6
|
||||
var layout_type = "light"; // theme layout color dark / light
|
||||
var layout_width = "wide"; // theme layout size wide / box
|
||||
var menu_effect_desktop = "shrink"; // navbar effect in desktop shrink / overlay / push
|
||||
var menu_effect_tablet = "overlay"; // navbar effect in tablet shrink / overlay / push
|
||||
var menu_effect_phone = "overlay"; // navbar effect in phone shrink / overlay / push
|
||||
var menu_icon_style = "st2"; // navbar menu icon st1 / st2
|
||||
$("#pcoded").pcodedmenu({
|
||||
themelayout: 'vertical',
|
||||
verticalMenuplacement: 'left', // value should be left/right
|
||||
verticalMenulayout: layout_width,
|
||||
MenuTrigger: 'click', // click / hover
|
||||
SubMenuTrigger: 'click', // click / hover
|
||||
activeMenuClass: 'active',
|
||||
ThemeBackgroundPattern: bgpattern,
|
||||
HeaderBackground: headerbg,
|
||||
LHeaderBackground: menucaption,
|
||||
NavbarBackground: Navbarbg,
|
||||
ActiveItemBackground: activeitemtheme,
|
||||
SubItemBackground: 'theme2',
|
||||
LogoTheme: 'theme6', // Value should be theme1/theme2/theme3/theme4/theme5/theme6
|
||||
ActiveItemStyle: 'style0',
|
||||
ItemBorder: true,
|
||||
ItemBorderStyle: 'solid',
|
||||
freamtype: frametype,
|
||||
SubItemBorder: false,
|
||||
DropDownIconStyle: 'style1', // Value should be style1,style2,style3
|
||||
menutype: menu_icon_style,
|
||||
layouttype: layout_type,
|
||||
FixedNavbarPosition: false, // Value should be true / false header postion
|
||||
FixedHeaderPosition: true, // Value should be true / false sidebar menu postion
|
||||
collapseVerticalLeftHeader: true,
|
||||
VerticalSubMenuItemIconStyle: 'style1', // value should be style1, style2, style3, style4, style5, style6
|
||||
VerticalNavigationView: 'view1',
|
||||
verticalMenueffect: {
|
||||
desktop: menu_effect_desktop,
|
||||
tablet: menu_effect_tablet,
|
||||
phone: menu_effect_phone,
|
||||
},
|
||||
defaultVerticalMenu: {
|
||||
desktop: "expanded", // value should be offcanvas/collapsed/expanded/compact/compact-acc/fullpage/ex-popover/sub-expanded
|
||||
tablet: "offcanvas", // value should be offcanvas/collapsed/expanded/compact/fullpage/ex-popover/sub-expanded
|
||||
phone: "offcanvas", // value should be offcanvas/collapsed/expanded/compact/fullpage/ex-popover/sub-expanded
|
||||
},
|
||||
onToggleVerticalMenu: {
|
||||
desktop: "offcanvas", // value should be offcanvas/collapsed/expanded/compact/fullpage/ex-popover/sub-expanded
|
||||
tablet: "expanded", // value should be offcanvas/collapsed/expanded/compact/fullpage/ex-popover/sub-expanded
|
||||
phone: "expanded", // value should be offcanvas/collapsed/expanded/compact/fullpage/ex-popover/sub-expanded
|
||||
},
|
||||
});
|
||||
/* layout type Change function Start */
|
||||
function handlelayouttheme() {
|
||||
$('.theme-color > a.Layout-type').on("click", function() {
|
||||
var layout = $(this).attr("layout-type");
|
||||
$('.pcoded').attr("layout-type", layout);
|
||||
if (layout == 'dark') {
|
||||
$('.pcoded-header').attr("header-theme", "theme6");
|
||||
$('.pcoded-navbar').attr("navbar-theme", "theme1");
|
||||
$('.pcoded-navbar').attr("active-item-theme", "theme1");
|
||||
$('.pcoded').attr("fream-type", "theme1");
|
||||
$('body').addClass('dark');
|
||||
$('body').attr("themebg-pattern", "theme1");
|
||||
$('.pcoded-navigation-label').attr("menu-title-theme", "theme1");
|
||||
}
|
||||
if (layout == 'light') {
|
||||
$('.pcoded-header').attr("header-theme", "themelight1");
|
||||
$('.pcoded-navbar').attr("navbar-theme", "themelight1");
|
||||
$('.pcoded-navigation-label').attr("menu-title-theme", "theme2");
|
||||
$('.pcoded-navbar').attr("active-item-theme", "theme1");
|
||||
$('.pcoded').attr("fream-type", "theme1");
|
||||
$('body').removeClass('dark');
|
||||
$('body').attr("themebg-pattern", "theme1");
|
||||
}
|
||||
});
|
||||
};
|
||||
handlelayouttheme();
|
||||
|
||||
/* Left header Theme Change function Start */
|
||||
function handleleftheadertheme() {
|
||||
$('.theme-color > a.leftheader-theme').on("click", function() {
|
||||
var lheadertheme = $(this).attr("menu-caption");
|
||||
$('.pcoded-navigation-label').attr("menu-title-theme", lheadertheme);
|
||||
});
|
||||
};
|
||||
handleleftheadertheme();
|
||||
/* Left header Theme Change function Close */
|
||||
/* header Theme Change function Start */
|
||||
function handleheaderthemefull() {
|
||||
$('.theme-color > a.header-theme-full').on("click", function() {
|
||||
var headertheme = $(this).attr("header-theme");
|
||||
var activeitem = $(this).attr("active-item-color");
|
||||
$('.pcoded-header').attr("header-theme", headertheme);
|
||||
$('.navbar-logo').attr("logo-theme", headertheme);
|
||||
$('.pcoded-navbar').attr("active-item-theme", activeitem);
|
||||
$('.pcoded').attr("fream-type", headertheme);
|
||||
$('body').attr("themebg-pattern", headertheme);
|
||||
if (headertheme == "theme6") {
|
||||
$('.pcoded-navbar').attr("active-item-theme", "theme1");
|
||||
}
|
||||
});
|
||||
};
|
||||
handleheaderthemefull();
|
||||
|
||||
function handleheadertheme() {
|
||||
$('.theme-color > a.header-theme').on("click", function() {
|
||||
var headertheme = $(this).attr("header-theme");
|
||||
var activeitem = $(this).attr("active-item-color");
|
||||
$('.pcoded-header').attr("header-theme", headertheme);
|
||||
$('.pcoded-navbar').attr("active-item-theme", activeitem);
|
||||
$('.pcoded').attr("fream-type", headertheme);
|
||||
$('body').attr("themebg-pattern", headertheme);
|
||||
if (headertheme == "theme6") {
|
||||
$('.pcoded-navbar').attr("active-item-theme", "theme1");
|
||||
}
|
||||
});
|
||||
};
|
||||
handleheadertheme();
|
||||
/* header Theme Change function Close */
|
||||
/* Navbar Theme Change function Start */
|
||||
function handlenavbartheme() {
|
||||
$('.theme-color > a.navbar-theme').on("click", function() {
|
||||
var navbartheme = $(this).attr("navbar-theme");
|
||||
$('.pcoded-navbar').attr("navbar-theme", navbartheme);
|
||||
if (navbartheme == 'themelight1') {
|
||||
$('.pcoded-navigation-label').attr("menu-title-theme", "theme2");
|
||||
}
|
||||
if (navbartheme == 'theme1') {
|
||||
$('.pcoded-navigation-label').attr("menu-title-theme", "theme1");
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
handlenavbartheme();
|
||||
/* Navbar Theme Change function Close */
|
||||
/* Active Item Theme Change function Start */
|
||||
function handleactiveitemtheme() {
|
||||
$('.theme-color > a.active-item-theme').on("click", function() {
|
||||
var activeitemtheme = $(this).attr("active-item-theme");
|
||||
$('.pcoded-navbar').attr("active-item-theme", activeitemtheme);
|
||||
});
|
||||
};
|
||||
|
||||
handleactiveitemtheme();
|
||||
/* Active Item Theme Change function Close */
|
||||
|
||||
/* Theme background pattren Change function Start */
|
||||
function handlethemebgpattern() {
|
||||
$('.theme-color > a.themebg-pattern').on("click", function() {
|
||||
var themebgpattern = $(this).attr("themebg-pattern");
|
||||
$('body').attr("themebg-pattern", themebgpattern);
|
||||
});
|
||||
};
|
||||
|
||||
handlethemebgpattern();
|
||||
/* Theme background pattren Change function Close */
|
||||
|
||||
/* Theme Layout Change function start*/
|
||||
function handlethemeverticallayout() {
|
||||
$('#theme-layout').change(function() {
|
||||
if ($(this).is(":checked")) {
|
||||
$('.pcoded').attr('vertical-layout', "box");
|
||||
$('#bg-pattern-visiblity').removeClass('d-none');
|
||||
|
||||
} else {
|
||||
$('.pcoded').attr('vertical-layout', "wide");
|
||||
$('#bg-pattern-visiblity').addClass('d-none');
|
||||
}
|
||||
});
|
||||
};
|
||||
handlethemeverticallayout();
|
||||
/* Theme Layout Change function Close*/
|
||||
/* Menu effect change function start*/
|
||||
function handleverticalMenueffect() {
|
||||
$('#vertical-menu-effect').val('shrink').on('change', function(get_value) {
|
||||
get_value = $(this).val();
|
||||
$('.pcoded').attr('vertical-effect', get_value);
|
||||
});
|
||||
};
|
||||
|
||||
handleverticalMenueffect();
|
||||
/* Menu effect change function Close*/
|
||||
|
||||
/* Vertical Item border Style change function Start*/
|
||||
function handleverticalboderstyle() {
|
||||
$('#vertical-border-style').val('solid').on('change', function(get_value) {
|
||||
get_value = $(this).val();
|
||||
$('.pcoded-navbar .pcoded-item').attr('item-border-style', get_value);
|
||||
});
|
||||
};
|
||||
|
||||
handleverticalboderstyle();
|
||||
/* Vertical Item border Style change function Close*/
|
||||
|
||||
/* Vertical Dropdown Icon change function Start*/
|
||||
function handleVerticalDropDownIconStyle() {
|
||||
$('#vertical-dropdown-icon').val('style1').on('change', function(get_value) {
|
||||
get_value = $(this).val();
|
||||
$('.pcoded-navbar .pcoded-hasmenu').attr('dropdown-icon', get_value);
|
||||
});
|
||||
};
|
||||
|
||||
handleVerticalDropDownIconStyle();
|
||||
/* Vertical Dropdown Icon change function Close*/
|
||||
/* Vertical SubItem Icon change function Start*/
|
||||
|
||||
function handleVerticalSubMenuItemIconStyle() {
|
||||
$('#vertical-subitem-icon').val('style5').on('change', function(get_value) {
|
||||
get_value = $(this).val();
|
||||
$('.pcoded-navbar .pcoded-hasmenu').attr('subitem-icon', get_value);
|
||||
});
|
||||
};
|
||||
|
||||
handleVerticalSubMenuItemIconStyle();
|
||||
/* Vertical SubItem Icon change function Close*/
|
||||
/* Vertical Navbar Position change function Start*/
|
||||
function handlesidebarposition() {
|
||||
$('#sidebar-position').change(function() {
|
||||
if ($(this).is(":checked")) {
|
||||
$('.pcoded-navbar').attr("pcoded-navbar-position", 'fixed');
|
||||
$('.pcoded-header .pcoded-left-header').attr("pcoded-lheader-position", 'fixed');
|
||||
} else {
|
||||
$('.pcoded-navbar').attr("pcoded-navbar-position", 'absolute');
|
||||
$('.pcoded-header .pcoded-left-header').attr("pcoded-lheader-position", 'relative');
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
handlesidebarposition();
|
||||
/* Vertical Navbar Position change function Close*/
|
||||
/* Vertical Header Position change function Start*/
|
||||
function handleheaderposition() {
|
||||
$('#header-position').change(function() {
|
||||
if ($(this).is(":checked")) {
|
||||
$('.pcoded-header').attr("pcoded-header-position", 'fixed');
|
||||
$('.pcoded-navbar').attr("pcoded-header-position", 'fixed');
|
||||
$('.pcoded-main-container').css('margin-top', $(".pcoded-header").outerHeight());
|
||||
} else {
|
||||
$('.pcoded-header').attr("pcoded-header-position", 'relative');
|
||||
$('.pcoded-navbar').attr("pcoded-header-position", 'relative');
|
||||
$('.pcoded-main-container').css('margin-top', '0px');
|
||||
}
|
||||
});
|
||||
};
|
||||
handleheaderposition();
|
||||
/* Vertical Header Position change function Close*/
|
||||
/* collapseable Left Header Change Function Start here*/
|
||||
function handlecollapseLeftHeader() {
|
||||
$('#collapse-left-header').change(function() {
|
||||
if ($(this).is(":checked")) {
|
||||
$('.pcoded-header, .pcoded ').removeClass('iscollapsed');
|
||||
$('.pcoded-header, .pcoded').addClass('nocollapsed');
|
||||
} else {
|
||||
$('.pcoded-header, .pcoded').addClass('iscollapsed');
|
||||
$('.pcoded-header, .pcoded').removeClass('nocollapsed');
|
||||
}
|
||||
});
|
||||
};
|
||||
handlecollapseLeftHeader();
|
||||
/* collapseable Left Header Change Function Close here*/
|
||||
});
|
||||
|
||||
function handlemenutype(get_value) {
|
||||
$('.pcoded').attr('nav-type', get_value);
|
||||
};
|
||||
|
||||
handlemenutype("st2");
|
||||
@@ -0,0 +1,265 @@
|
||||
"use strict!"
|
||||
$(document).ready(function() {
|
||||
// variable
|
||||
var noofdays = 1; // total no of days cookie will store
|
||||
var Navbarbg = "themelight1"; // navbar color themelight1 / theme1
|
||||
var headerbg = "theme1"; // header color theme1 / theme2 / theme3 / theme4 / theme5 / theme6
|
||||
var menucaption = "theme1"; // menu caption color theme1 / theme2 / theme3 / theme4 / theme5 / theme6 / theme7 / theme8 / theme9
|
||||
var bgpattern = "theme1"; // background color theme1 / theme2 / theme3 / theme4 / theme5 / theme6
|
||||
var activeitemtheme = "theme1"; // menu active color theme1 / theme2 / theme3 / theme4 / theme5 / theme6 / theme7 / theme8 / theme9 / theme10 / theme11 / theme12
|
||||
var frametype = "theme1"; // preset frame color theme1 / theme2 / theme3 / theme4 / theme5 / theme6
|
||||
var layout_type = "light"; // theme layout color dark / light
|
||||
var layout_width = "wide"; // theme layout size wide / box
|
||||
var menu_effect_desktop = "shrink"; // navbar effect in desktop shrink / overlay / push
|
||||
var menu_effect_tablet = "overlay"; // navbar effect in tablet shrink / overlay / push
|
||||
var menu_effect_phone = "overlay"; // navbar effect in phone shrink / overlay / push
|
||||
var menu_icon_style = "st2"; // navbar menu icon st1 / st2
|
||||
$('.pcoded-navbar .pcoded-hasmenu').attr('subitem-icon', 'style1');
|
||||
$("#pcoded").pcodedmenu({
|
||||
themelayout: 'horizontal',
|
||||
horizontalMenuplacement: 'top',
|
||||
horizontalBrandItem: true,
|
||||
horizontalLeftNavItem: true,
|
||||
horizontalRightItem: true,
|
||||
horizontalSearchItem: true,
|
||||
horizontalMobileMenu: true,
|
||||
MenuTrigger: 'hover',
|
||||
SubMenuTrigger: 'hover',
|
||||
activeMenuClass: 'active',
|
||||
ThemeBackgroundPattern: bgpattern,
|
||||
HeaderBackground: headerbg,
|
||||
LHeaderBackground: menucaption,
|
||||
NavbarBackground: Navbarbg,
|
||||
ActiveItemBackground: activeitemtheme,
|
||||
SubItemBackground: 'theme2',
|
||||
LogoTheme: 'theme1', // Value should be theme1/theme2/theme3/theme4/theme5/theme6
|
||||
menutype: menu_icon_style,
|
||||
freamtype: frametype,
|
||||
layouttype: layout_type,
|
||||
ActiveItemStyle: 'style1',
|
||||
ItemBorder: true,
|
||||
ItemBorderStyle: 'none',
|
||||
SubItemBorder: true,
|
||||
DropDownIconStyle: 'style1',
|
||||
FixedNavbarPosition: true,
|
||||
FixedHeaderPosition: true,
|
||||
horizontalNavIsCentered: false,
|
||||
horizontalstickynavigation: false,
|
||||
horizontalNavigationMenuIcon: true,
|
||||
});
|
||||
/* layout type Change function Start */
|
||||
function handlelayouttheme() {
|
||||
$('.theme-color > a.Layout-type').on("click", function() {
|
||||
var layout = $(this).attr("layout-type");
|
||||
$('.pcoded').attr("layout-type", layout);
|
||||
if (layout == 'dark') {
|
||||
$('.pcoded-header').attr("header-theme", "theme6");
|
||||
$('.pcoded-navbar').attr("navbar-theme", "theme1");
|
||||
$('.pcoded-navbar').attr("active-item-theme", "theme1");
|
||||
$('.pcoded').attr("fream-type", "theme1");
|
||||
$('body').addClass('dark');
|
||||
$('body').attr("themebg-pattern", "theme1");
|
||||
$('.pcoded-navigation-label').attr("menu-title-theme", "theme1");
|
||||
}
|
||||
if (layout == 'light') {
|
||||
$('.pcoded-header').attr("header-theme", "themelight1");
|
||||
$('.pcoded-navbar').attr("navbar-theme", "themelight1");
|
||||
$('.pcoded-navigation-label').attr("menu-title-theme", "theme2");
|
||||
$('.pcoded-navbar').attr("active-item-theme", "theme1");
|
||||
$('.pcoded').attr("fream-type", "theme1");
|
||||
$('body').removeClass('dark');
|
||||
$('body').attr("themebg-pattern", "theme1");
|
||||
}
|
||||
});
|
||||
};
|
||||
handlelayouttheme();
|
||||
|
||||
/* Left header Theme Change function Start */
|
||||
function handleleftheadertheme() {
|
||||
$('.theme-color > a.leftheader-theme').on("click", function() {
|
||||
var lheadertheme = $(this).attr("menu-caption");
|
||||
$('.pcoded-navigation-label').attr("menu-title-theme", lheadertheme);
|
||||
});
|
||||
};
|
||||
handleleftheadertheme();
|
||||
/* Left header Theme Change function Close */
|
||||
/* header Theme Change function Start */
|
||||
function handleheaderthemefull() {
|
||||
$('.theme-color > a.header-theme-full').on("click", function() {
|
||||
var headertheme = $(this).attr("header-theme");
|
||||
var activeitem = $(this).attr("active-item-color");
|
||||
$('.pcoded-header').attr("header-theme", headertheme);
|
||||
$('.navbar-logo').attr("logo-theme", headertheme);
|
||||
$('.pcoded-navbar').attr("active-item-theme", activeitem);
|
||||
$('.pcoded').attr("fream-type", headertheme);
|
||||
$('body').attr("themebg-pattern", headertheme);
|
||||
if (headertheme == "theme6") {
|
||||
$('.pcoded-navbar').attr("active-item-theme", "theme1");
|
||||
}
|
||||
});
|
||||
};
|
||||
handleheaderthemefull();
|
||||
|
||||
function handleheadertheme() {
|
||||
$('.theme-color > a.header-theme').on("click", function() {
|
||||
var headertheme = $(this).attr("header-theme");
|
||||
var activeitem = $(this).attr("active-item-color");
|
||||
$('.pcoded-header').attr("header-theme", headertheme);
|
||||
$('.pcoded-navbar').attr("active-item-theme", activeitem);
|
||||
$('.pcoded').attr("fream-type", headertheme);
|
||||
$('body').attr("themebg-pattern", headertheme);
|
||||
if (headertheme == "theme6") {
|
||||
$('.pcoded-navbar').attr("active-item-theme", "theme1");
|
||||
}
|
||||
});
|
||||
};
|
||||
handleheadertheme();
|
||||
/* header Theme Change function Close */
|
||||
/* Navbar Theme Change function Start */
|
||||
function handlenavbartheme() {
|
||||
$('.theme-color > a.navbar-theme').on("click", function() {
|
||||
var navbartheme = $(this).attr("navbar-theme");
|
||||
$('.pcoded-navbar').attr("navbar-theme", navbartheme);
|
||||
if (navbartheme == 'themelight1') {
|
||||
$('.pcoded-navigation-label').attr("menu-title-theme", "theme2");
|
||||
}
|
||||
if (navbartheme == 'theme1') {
|
||||
$('.pcoded-navigation-label').attr("menu-title-theme", "theme1");
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
handlenavbartheme();
|
||||
/* Navbar Theme Change function Close */
|
||||
/* Active Item Theme Change function Start */
|
||||
function handleactiveitemtheme() {
|
||||
$('.theme-color > a.active-item-theme').on("click", function() {
|
||||
var activeitemtheme = $(this).attr("active-item-theme");
|
||||
$('.pcoded-navbar').attr("active-item-theme", activeitemtheme);
|
||||
});
|
||||
};
|
||||
|
||||
handleactiveitemtheme();
|
||||
/* Active Item Theme Change function Close */
|
||||
|
||||
/* Theme background pattren Change function Start */
|
||||
function handlethemebgpattern() {
|
||||
$('.theme-color > a.themebg-pattern').on("click", function() {
|
||||
var themebgpattern = $(this).attr("themebg-pattern");
|
||||
$('body').attr("themebg-pattern", themebgpattern);
|
||||
});
|
||||
};
|
||||
|
||||
handlethemebgpattern();
|
||||
/* Theme background pattren Change function Close */
|
||||
|
||||
/* Theme Layout Change function start*/
|
||||
function handlethemeverticallayout() {
|
||||
$('#theme-layout').change(function() {
|
||||
if ($(this).is(":checked")) {
|
||||
$('.pcoded').attr('vertical-layout', "box");
|
||||
$('#bg-pattern-visiblity').removeClass('d-none');
|
||||
|
||||
} else {
|
||||
$('.pcoded').attr('vertical-layout', "wide");
|
||||
$('#bg-pattern-visiblity').addClass('d-none');
|
||||
}
|
||||
});
|
||||
};
|
||||
handlethemeverticallayout();
|
||||
/* Theme Layout Change function Close*/
|
||||
/* Menu effect change function start*/
|
||||
function handleverticalMenueffect() {
|
||||
$('#vertical-menu-effect').val('shrink').on('change', function(get_value) {
|
||||
get_value = $(this).val();
|
||||
$('.pcoded').attr('vertical-effect', get_value);
|
||||
});
|
||||
};
|
||||
|
||||
handleverticalMenueffect();
|
||||
/* Menu effect change function Close*/
|
||||
|
||||
/* Vertical Item border Style change function Start*/
|
||||
function handleverticalboderstyle() {
|
||||
$('#vertical-border-style').val('solid').on('change', function(get_value) {
|
||||
get_value = $(this).val();
|
||||
$('.pcoded-navbar .pcoded-item').attr('item-border-style', get_value);
|
||||
});
|
||||
};
|
||||
|
||||
handleverticalboderstyle();
|
||||
/* Vertical Item border Style change function Close*/
|
||||
|
||||
/* Vertical Dropdown Icon change function Start*/
|
||||
function handleVerticalDropDownIconStyle() {
|
||||
$('#vertical-dropdown-icon').val('style1').on('change', function(get_value) {
|
||||
get_value = $(this).val();
|
||||
$('.pcoded-navbar .pcoded-hasmenu').attr('dropdown-icon', get_value);
|
||||
});
|
||||
};
|
||||
|
||||
handleVerticalDropDownIconStyle();
|
||||
/* Vertical Dropdown Icon change function Close*/
|
||||
/* Vertical SubItem Icon change function Start*/
|
||||
|
||||
function handleVerticalSubMenuItemIconStyle() {
|
||||
$('#vertical-subitem-icon').val('style5').on('change', function(get_value) {
|
||||
get_value = $(this).val();
|
||||
$('.pcoded-navbar .pcoded-hasmenu').attr('subitem-icon', get_value);
|
||||
});
|
||||
};
|
||||
|
||||
handleVerticalSubMenuItemIconStyle();
|
||||
/* Vertical SubItem Icon change function Close*/
|
||||
/* Vertical Navbar Position change function Start*/
|
||||
function handlesidebarposition() {
|
||||
$('#sidebar-position').change(function() {
|
||||
if ($(this).is(":checked")) {
|
||||
$('.pcoded-navbar').attr("pcoded-navbar-position", 'fixed');
|
||||
$('.pcoded-header .pcoded-left-header').attr("pcoded-lheader-position", 'fixed');
|
||||
} else {
|
||||
$('.pcoded-navbar').attr("pcoded-navbar-position", 'absolute');
|
||||
$('.pcoded-header .pcoded-left-header').attr("pcoded-lheader-position", 'relative');
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
handlesidebarposition();
|
||||
/* Vertical Navbar Position change function Close*/
|
||||
/* Vertical Header Position change function Start*/
|
||||
function handleheaderposition() {
|
||||
$('#header-position').change(function() {
|
||||
if ($(this).is(":checked")) {
|
||||
$('.pcoded-header').attr("pcoded-header-position", 'fixed');
|
||||
$('.pcoded-navbar').attr("pcoded-header-position", 'fixed');
|
||||
$('.pcoded-main-container').css('margin-top', $(".pcoded-header").outerHeight());
|
||||
} else {
|
||||
$('.pcoded-header').attr("pcoded-header-position", 'relative');
|
||||
$('.pcoded-navbar').attr("pcoded-header-position", 'relative');
|
||||
$('.pcoded-main-container').css('margin-top', '0px');
|
||||
}
|
||||
});
|
||||
};
|
||||
handleheaderposition();
|
||||
/* Vertical Header Position change function Close*/
|
||||
/* collapseable Left Header Change Function Start here*/
|
||||
function handlecollapseLeftHeader() {
|
||||
$('#collapse-left-header').change(function() {
|
||||
if ($(this).is(":checked")) {
|
||||
$('.pcoded-header, .pcoded ').removeClass('iscollapsed');
|
||||
$('.pcoded-header, .pcoded').addClass('nocollapsed');
|
||||
} else {
|
||||
$('.pcoded-header, .pcoded').addClass('iscollapsed');
|
||||
$('.pcoded-header, .pcoded').removeClass('nocollapsed');
|
||||
}
|
||||
});
|
||||
};
|
||||
handlecollapseLeftHeader();
|
||||
/* collapseable Left Header Change Function Close here*/
|
||||
});
|
||||
|
||||
function handlemenutype(get_value) {
|
||||
$('.pcoded').attr('nav-type', get_value);
|
||||
};
|
||||
|
||||
handlemenutype("st2");
|
||||
@@ -0,0 +1,275 @@
|
||||
"use strict!"
|
||||
$(document).ready(function() {
|
||||
// variable
|
||||
var noofdays = 1; // total no of days cookie will store
|
||||
var Navbarbg = "theme1"; // navbar color themelight1 / theme1
|
||||
var headerbg = "themelight1"; // header color theme1 / theme2 / theme3 / theme4 / theme5 / theme6
|
||||
var menucaption = "theme1"; // menu caption color theme1 / theme2 / theme3 / theme4 / theme5 / theme6 / theme7 / theme8 / theme9
|
||||
var bgpattern = "theme1"; // background color theme1 / theme2 / theme3 / theme4 / theme5 / theme6
|
||||
var activeitemtheme = "theme1"; // menu active color theme1 / theme2 / theme3 / theme4 / theme5 / theme6 / theme7 / theme8 / theme9 / theme10 / theme11 / theme12
|
||||
var frametype = "theme1"; // preset frame color theme1 / theme2 / theme3 / theme4 / theme5 / theme6
|
||||
var layout_type = "light"; // theme layout color dark / light
|
||||
var layout_width = "wide"; // theme layout size wide / box
|
||||
var menu_effect_desktop = "shrink"; // navbar effect in desktop shrink / overlay / push
|
||||
var menu_effect_tablet = "overlay"; // navbar effect in tablet shrink / overlay / push
|
||||
var menu_effect_phone = "overlay"; // navbar effect in phone shrink / overlay / push
|
||||
var menu_icon_style = "st2"; // navbar menu icon st1 / st2
|
||||
$("#pcoded").pcodedmenu({
|
||||
themelayout: 'vertical',
|
||||
verticalMenuplacement: 'left', // value should be left/right
|
||||
verticalMenulayout: layout_width,
|
||||
MenuTrigger: 'click', // click / hover
|
||||
SubMenuTrigger: 'click', // click / hover
|
||||
activeMenuClass: 'active',
|
||||
ThemeBackgroundPattern: bgpattern,
|
||||
HeaderBackground: headerbg,
|
||||
LHeaderBackground: menucaption,
|
||||
NavbarBackground: Navbarbg,
|
||||
ActiveItemBackground: activeitemtheme,
|
||||
SubItemBackground: 'theme2',
|
||||
LogoTheme: 'theme6', // Value should be theme1/theme2/theme3/theme4/theme5/theme6
|
||||
ActiveItemStyle: 'style0',
|
||||
ItemBorder: true,
|
||||
ItemBorderStyle: 'solid',
|
||||
freamtype: frametype,
|
||||
SubItemBorder: false,
|
||||
DropDownIconStyle: 'style1', // Value should be style1,style2,style3
|
||||
menutype: menu_icon_style,
|
||||
layouttype: layout_type,
|
||||
FixedNavbarPosition: true, // Value should be true / false header postion
|
||||
FixedHeaderPosition: false, // Value should be true / false sidebar menu postion
|
||||
collapseVerticalLeftHeader: true,
|
||||
VerticalSubMenuItemIconStyle: 'style1', // value should be style1, style2, style3, style4, style5, style6
|
||||
VerticalNavigationView: 'view1',
|
||||
verticalMenueffect: {
|
||||
desktop: menu_effect_desktop,
|
||||
tablet: menu_effect_tablet,
|
||||
phone: menu_effect_phone,
|
||||
},
|
||||
defaultVerticalMenu: {
|
||||
desktop: "expanded", // value should be offcanvas/collapsed/expanded/compact/compact-acc/fullpage/ex-popover/sub-expanded
|
||||
tablet: "offcanvas", // value should be offcanvas/collapsed/expanded/compact/fullpage/ex-popover/sub-expanded
|
||||
phone: "offcanvas", // value should be offcanvas/collapsed/expanded/compact/fullpage/ex-popover/sub-expanded
|
||||
},
|
||||
onToggleVerticalMenu: {
|
||||
desktop: "offcanvas", // value should be offcanvas/collapsed/expanded/compact/fullpage/ex-popover/sub-expanded
|
||||
tablet: "expanded", // value should be offcanvas/collapsed/expanded/compact/fullpage/ex-popover/sub-expanded
|
||||
phone: "expanded", // value should be offcanvas/collapsed/expanded/compact/fullpage/ex-popover/sub-expanded
|
||||
},
|
||||
});
|
||||
/* layout type Change function Start */
|
||||
function handlelayouttheme() {
|
||||
$('.theme-color > a.Layout-type').on("click", function() {
|
||||
var layout = $(this).attr("layout-type");
|
||||
$('.pcoded').attr("layout-type", layout);
|
||||
if (layout == 'dark') {
|
||||
$('.pcoded-header').attr("header-theme", "theme6");
|
||||
$('.pcoded-navbar').attr("navbar-theme", "theme1");
|
||||
$('.pcoded-navbar').attr("active-item-theme", "theme1");
|
||||
$('.pcoded').attr("fream-type", "theme1");
|
||||
$('body').addClass('dark');
|
||||
$('body').attr("themebg-pattern", "theme1");
|
||||
$('.pcoded-navigation-label').attr("menu-title-theme", "theme1");
|
||||
}
|
||||
if (layout == 'light') {
|
||||
$('.pcoded-header').attr("header-theme", "themelight1");
|
||||
$('.pcoded-navbar').attr("navbar-theme", "themelight1");
|
||||
$('.pcoded-navigation-label').attr("menu-title-theme", "theme2");
|
||||
$('.pcoded-navbar').attr("active-item-theme", "theme1");
|
||||
$('.pcoded').attr("fream-type", "theme1");
|
||||
$('body').removeClass('dark');
|
||||
$('body').attr("themebg-pattern", "theme1");
|
||||
}
|
||||
});
|
||||
};
|
||||
handlelayouttheme();
|
||||
|
||||
/* Left header Theme Change function Start */
|
||||
function handleleftheadertheme() {
|
||||
$('.theme-color > a.leftheader-theme').on("click", function() {
|
||||
var lheadertheme = $(this).attr("menu-caption");
|
||||
$('.pcoded-navigation-label').attr("menu-title-theme", lheadertheme);
|
||||
});
|
||||
};
|
||||
handleleftheadertheme();
|
||||
/* Left header Theme Change function Close */
|
||||
/* header Theme Change function Start */
|
||||
function handleheaderthemefull() {
|
||||
$('.theme-color > a.header-theme-full').on("click", function() {
|
||||
var headertheme = $(this).attr("header-theme");
|
||||
var activeitem = $(this).attr("active-item-color");
|
||||
$('.pcoded-header').attr("header-theme", headertheme);
|
||||
$('.navbar-logo').attr("logo-theme", headertheme);
|
||||
$('.pcoded-navbar').attr("active-item-theme", activeitem);
|
||||
$('.pcoded').attr("fream-type", headertheme);
|
||||
$('body').attr("themebg-pattern", headertheme);
|
||||
if (headertheme == "theme6") {
|
||||
$('.pcoded-navbar').attr("active-item-theme", "theme1");
|
||||
}
|
||||
});
|
||||
};
|
||||
handleheaderthemefull();
|
||||
|
||||
function handleheadertheme() {
|
||||
$('.theme-color > a.header-theme').on("click", function() {
|
||||
var headertheme = $(this).attr("header-theme");
|
||||
var activeitem = $(this).attr("active-item-color");
|
||||
$('.pcoded-header').attr("header-theme", headertheme);
|
||||
$('.pcoded-navbar').attr("active-item-theme", activeitem);
|
||||
$('.pcoded').attr("fream-type", headertheme);
|
||||
$('body').attr("themebg-pattern", headertheme);
|
||||
if (headertheme == "theme6") {
|
||||
$('.pcoded-navbar').attr("active-item-theme", "theme1");
|
||||
}
|
||||
});
|
||||
};
|
||||
handleheadertheme();
|
||||
/* header Theme Change function Close */
|
||||
/* Navbar Theme Change function Start */
|
||||
function handlenavbartheme() {
|
||||
$('.theme-color > a.navbar-theme').on("click", function() {
|
||||
var navbartheme = $(this).attr("navbar-theme");
|
||||
$('.pcoded-navbar').attr("navbar-theme", navbartheme);
|
||||
if (navbartheme == 'themelight1') {
|
||||
$('.pcoded-navigation-label').attr("menu-title-theme", "theme2");
|
||||
}
|
||||
if (navbartheme == 'theme1') {
|
||||
$('.pcoded-navigation-label').attr("menu-title-theme", "theme1");
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
handlenavbartheme();
|
||||
/* Navbar Theme Change function Close */
|
||||
/* Active Item Theme Change function Start */
|
||||
function handleactiveitemtheme() {
|
||||
$('.theme-color > a.active-item-theme').on("click", function() {
|
||||
var activeitemtheme = $(this).attr("active-item-theme");
|
||||
$('.pcoded-navbar').attr("active-item-theme", activeitemtheme);
|
||||
});
|
||||
};
|
||||
|
||||
handleactiveitemtheme();
|
||||
/* Active Item Theme Change function Close */
|
||||
|
||||
/* Theme background pattren Change function Start */
|
||||
function handlethemebgpattern() {
|
||||
$('.theme-color > a.themebg-pattern').on("click", function() {
|
||||
var themebgpattern = $(this).attr("themebg-pattern");
|
||||
$('body').attr("themebg-pattern", themebgpattern);
|
||||
});
|
||||
};
|
||||
|
||||
handlethemebgpattern();
|
||||
/* Theme background pattren Change function Close */
|
||||
|
||||
/* Theme Layout Change function start*/
|
||||
function handlethemeverticallayout() {
|
||||
$('#theme-layout').change(function() {
|
||||
if ($(this).is(":checked")) {
|
||||
$('.pcoded').attr('vertical-layout', "box");
|
||||
$('#bg-pattern-visiblity').removeClass('d-none');
|
||||
|
||||
} else {
|
||||
$('.pcoded').attr('vertical-layout', "wide");
|
||||
$('#bg-pattern-visiblity').addClass('d-none');
|
||||
}
|
||||
});
|
||||
};
|
||||
handlethemeverticallayout();
|
||||
/* Theme Layout Change function Close*/
|
||||
/* Menu effect change function start*/
|
||||
function handleverticalMenueffect() {
|
||||
$('#vertical-menu-effect').val('shrink').on('change', function(get_value) {
|
||||
get_value = $(this).val();
|
||||
$('.pcoded').attr('vertical-effect', get_value);
|
||||
});
|
||||
};
|
||||
|
||||
handleverticalMenueffect();
|
||||
/* Menu effect change function Close*/
|
||||
|
||||
/* Vertical Item border Style change function Start*/
|
||||
function handleverticalboderstyle() {
|
||||
$('#vertical-border-style').val('solid').on('change', function(get_value) {
|
||||
get_value = $(this).val();
|
||||
$('.pcoded-navbar .pcoded-item').attr('item-border-style', get_value);
|
||||
});
|
||||
};
|
||||
|
||||
handleverticalboderstyle();
|
||||
/* Vertical Item border Style change function Close*/
|
||||
|
||||
/* Vertical Dropdown Icon change function Start*/
|
||||
function handleVerticalDropDownIconStyle() {
|
||||
$('#vertical-dropdown-icon').val('style1').on('change', function(get_value) {
|
||||
get_value = $(this).val();
|
||||
$('.pcoded-navbar .pcoded-hasmenu').attr('dropdown-icon', get_value);
|
||||
});
|
||||
};
|
||||
|
||||
handleVerticalDropDownIconStyle();
|
||||
/* Vertical Dropdown Icon change function Close*/
|
||||
/* Vertical SubItem Icon change function Start*/
|
||||
|
||||
function handleVerticalSubMenuItemIconStyle() {
|
||||
$('#vertical-subitem-icon').val('style5').on('change', function(get_value) {
|
||||
get_value = $(this).val();
|
||||
$('.pcoded-navbar .pcoded-hasmenu').attr('subitem-icon', get_value);
|
||||
});
|
||||
};
|
||||
|
||||
handleVerticalSubMenuItemIconStyle();
|
||||
/* Vertical SubItem Icon change function Close*/
|
||||
/* Vertical Navbar Position change function Start*/
|
||||
function handlesidebarposition() {
|
||||
$('#sidebar-position').change(function() {
|
||||
if ($(this).is(":checked")) {
|
||||
$('.pcoded-navbar').attr("pcoded-navbar-position", 'fixed');
|
||||
$('.pcoded-header .pcoded-left-header').attr("pcoded-lheader-position", 'fixed');
|
||||
} else {
|
||||
$('.pcoded-navbar').attr("pcoded-navbar-position", 'absolute');
|
||||
$('.pcoded-header .pcoded-left-header').attr("pcoded-lheader-position", 'relative');
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
handlesidebarposition();
|
||||
/* Vertical Navbar Position change function Close*/
|
||||
/* Vertical Header Position change function Start*/
|
||||
function handleheaderposition() {
|
||||
$('#header-position').change(function() {
|
||||
if ($(this).is(":checked")) {
|
||||
$('.pcoded-header').attr("pcoded-header-position", 'fixed');
|
||||
$('.pcoded-navbar').attr("pcoded-header-position", 'fixed');
|
||||
$('.pcoded-main-container').css('margin-top', $(".pcoded-header").outerHeight());
|
||||
} else {
|
||||
$('.pcoded-header').attr("pcoded-header-position", 'relative');
|
||||
$('.pcoded-navbar').attr("pcoded-header-position", 'relative');
|
||||
$('.pcoded-main-container').css('margin-top', '0px');
|
||||
}
|
||||
});
|
||||
};
|
||||
handleheaderposition();
|
||||
/* Vertical Header Position change function Close*/
|
||||
/* collapseable Left Header Change Function Start here*/
|
||||
function handlecollapseLeftHeader() {
|
||||
$('#collapse-left-header').change(function() {
|
||||
if ($(this).is(":checked")) {
|
||||
$('.pcoded-header, .pcoded ').removeClass('iscollapsed');
|
||||
$('.pcoded-header, .pcoded').addClass('nocollapsed');
|
||||
} else {
|
||||
$('.pcoded-header, .pcoded').addClass('iscollapsed');
|
||||
$('.pcoded-header, .pcoded').removeClass('nocollapsed');
|
||||
}
|
||||
});
|
||||
};
|
||||
handlecollapseLeftHeader();
|
||||
/* collapseable Left Header Change Function Close here*/
|
||||
});
|
||||
|
||||
function handlemenutype(get_value) {
|
||||
$('.pcoded').attr('nav-type', get_value);
|
||||
};
|
||||
|
||||
handlemenutype("st2");
|
||||
@@ -0,0 +1,275 @@
|
||||
"use strict!"
|
||||
$(document).ready(function() {
|
||||
// variable
|
||||
var noofdays = 1; // total no of days cookie will store
|
||||
var Navbarbg = "theme1"; // navbar color themelight1 / theme1
|
||||
var headerbg = "themelight1"; // header color theme1 / theme2 / theme3 / theme4 / theme5 / theme6
|
||||
var menucaption = "theme1"; // menu caption color theme1 / theme2 / theme3 / theme4 / theme5 / theme6 / theme7 / theme8 / theme9
|
||||
var bgpattern = "theme1"; // background color theme1 / theme2 / theme3 / theme4 / theme5 / theme6
|
||||
var activeitemtheme = "theme1"; // menu active color theme1 / theme2 / theme3 / theme4 / theme5 / theme6 / theme7 / theme8 / theme9 / theme10 / theme11 / theme12
|
||||
var frametype = "theme1"; // preset frame color theme1 / theme2 / theme3 / theme4 / theme5 / theme6
|
||||
var layout_type = "light"; // theme layout color dark / light
|
||||
var layout_width = "wide"; // theme layout size wide / box
|
||||
var menu_effect_desktop = "shrink"; // navbar effect in desktop shrink / overlay / push
|
||||
var menu_effect_tablet = "overlay"; // navbar effect in tablet shrink / overlay / push
|
||||
var menu_effect_phone = "overlay"; // navbar effect in phone shrink / overlay / push
|
||||
var menu_icon_style = "st2"; // navbar menu icon st1 / st2
|
||||
$("#pcoded").pcodedmenu({
|
||||
themelayout: 'vertical',
|
||||
verticalMenuplacement: 'left', // value should be left/right
|
||||
verticalMenulayout: layout_width,
|
||||
MenuTrigger: 'click', // click / hover
|
||||
SubMenuTrigger: 'click', // click / hover
|
||||
activeMenuClass: 'active',
|
||||
ThemeBackgroundPattern: bgpattern,
|
||||
HeaderBackground: headerbg,
|
||||
LHeaderBackground: menucaption,
|
||||
NavbarBackground: Navbarbg,
|
||||
ActiveItemBackground: activeitemtheme,
|
||||
SubItemBackground: 'theme2',
|
||||
LogoTheme: 'theme6', // Value should be theme1/theme2/theme3/theme4/theme5/theme6
|
||||
ActiveItemStyle: 'style0',
|
||||
ItemBorder: true,
|
||||
ItemBorderStyle: 'solid',
|
||||
freamtype: frametype,
|
||||
SubItemBorder: false,
|
||||
DropDownIconStyle: 'style1', // Value should be style1,style2,style3
|
||||
menutype: menu_icon_style,
|
||||
layouttype: layout_type,
|
||||
FixedNavbarPosition: false, // Value should be true / false header postion
|
||||
FixedHeaderPosition: false, // Value should be true / false sidebar menu postion
|
||||
collapseVerticalLeftHeader: true,
|
||||
VerticalSubMenuItemIconStyle: 'style1', // value should be style1, style2, style3, style4, style5, style6
|
||||
VerticalNavigationView: 'view1',
|
||||
verticalMenueffect: {
|
||||
desktop: menu_effect_desktop,
|
||||
tablet: menu_effect_tablet,
|
||||
phone: menu_effect_phone,
|
||||
},
|
||||
defaultVerticalMenu: {
|
||||
desktop: "expanded", // value should be offcanvas/collapsed/expanded/compact/compact-acc/fullpage/ex-popover/sub-expanded
|
||||
tablet: "offcanvas", // value should be offcanvas/collapsed/expanded/compact/fullpage/ex-popover/sub-expanded
|
||||
phone: "offcanvas", // value should be offcanvas/collapsed/expanded/compact/fullpage/ex-popover/sub-expanded
|
||||
},
|
||||
onToggleVerticalMenu: {
|
||||
desktop: "offcanvas", // value should be offcanvas/collapsed/expanded/compact/fullpage/ex-popover/sub-expanded
|
||||
tablet: "expanded", // value should be offcanvas/collapsed/expanded/compact/fullpage/ex-popover/sub-expanded
|
||||
phone: "expanded", // value should be offcanvas/collapsed/expanded/compact/fullpage/ex-popover/sub-expanded
|
||||
},
|
||||
});
|
||||
/* layout type Change function Start */
|
||||
function handlelayouttheme() {
|
||||
$('.theme-color > a.Layout-type').on("click", function() {
|
||||
var layout = $(this).attr("layout-type");
|
||||
$('.pcoded').attr("layout-type", layout);
|
||||
if (layout == 'dark') {
|
||||
$('.pcoded-header').attr("header-theme", "theme6");
|
||||
$('.pcoded-navbar').attr("navbar-theme", "theme1");
|
||||
$('.pcoded-navbar').attr("active-item-theme", "theme1");
|
||||
$('.pcoded').attr("fream-type", "theme1");
|
||||
$('body').addClass('dark');
|
||||
$('body').attr("themebg-pattern", "theme1");
|
||||
$('.pcoded-navigation-label').attr("menu-title-theme", "theme1");
|
||||
}
|
||||
if (layout == 'light') {
|
||||
$('.pcoded-header').attr("header-theme", "themelight1");
|
||||
$('.pcoded-navbar').attr("navbar-theme", "themelight1");
|
||||
$('.pcoded-navigation-label').attr("menu-title-theme", "theme2");
|
||||
$('.pcoded-navbar').attr("active-item-theme", "theme1");
|
||||
$('.pcoded').attr("fream-type", "theme1");
|
||||
$('body').removeClass('dark');
|
||||
$('body').attr("themebg-pattern", "theme1");
|
||||
}
|
||||
});
|
||||
};
|
||||
handlelayouttheme();
|
||||
|
||||
/* Left header Theme Change function Start */
|
||||
function handleleftheadertheme() {
|
||||
$('.theme-color > a.leftheader-theme').on("click", function() {
|
||||
var lheadertheme = $(this).attr("menu-caption");
|
||||
$('.pcoded-navigation-label').attr("menu-title-theme", lheadertheme);
|
||||
});
|
||||
};
|
||||
handleleftheadertheme();
|
||||
/* Left header Theme Change function Close */
|
||||
/* header Theme Change function Start */
|
||||
function handleheaderthemefull() {
|
||||
$('.theme-color > a.header-theme-full').on("click", function() {
|
||||
var headertheme = $(this).attr("header-theme");
|
||||
var activeitem = $(this).attr("active-item-color");
|
||||
$('.pcoded-header').attr("header-theme", headertheme);
|
||||
$('.navbar-logo').attr("logo-theme", headertheme);
|
||||
$('.pcoded-navbar').attr("active-item-theme", activeitem);
|
||||
$('.pcoded').attr("fream-type", headertheme);
|
||||
$('body').attr("themebg-pattern", headertheme);
|
||||
if (headertheme == "theme6") {
|
||||
$('.pcoded-navbar').attr("active-item-theme", "theme1");
|
||||
}
|
||||
});
|
||||
};
|
||||
handleheaderthemefull();
|
||||
|
||||
function handleheadertheme() {
|
||||
$('.theme-color > a.header-theme').on("click", function() {
|
||||
var headertheme = $(this).attr("header-theme");
|
||||
var activeitem = $(this).attr("active-item-color");
|
||||
$('.pcoded-header').attr("header-theme", headertheme);
|
||||
$('.pcoded-navbar').attr("active-item-theme", activeitem);
|
||||
$('.pcoded').attr("fream-type", headertheme);
|
||||
$('body').attr("themebg-pattern", headertheme);
|
||||
if (headertheme == "theme6") {
|
||||
$('.pcoded-navbar').attr("active-item-theme", "theme1");
|
||||
}
|
||||
});
|
||||
};
|
||||
handleheadertheme();
|
||||
/* header Theme Change function Close */
|
||||
/* Navbar Theme Change function Start */
|
||||
function handlenavbartheme() {
|
||||
$('.theme-color > a.navbar-theme').on("click", function() {
|
||||
var navbartheme = $(this).attr("navbar-theme");
|
||||
$('.pcoded-navbar').attr("navbar-theme", navbartheme);
|
||||
if (navbartheme == 'themelight1') {
|
||||
$('.pcoded-navigation-label').attr("menu-title-theme", "theme2");
|
||||
}
|
||||
if (navbartheme == 'theme1') {
|
||||
$('.pcoded-navigation-label').attr("menu-title-theme", "theme1");
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
handlenavbartheme();
|
||||
/* Navbar Theme Change function Close */
|
||||
/* Active Item Theme Change function Start */
|
||||
function handleactiveitemtheme() {
|
||||
$('.theme-color > a.active-item-theme').on("click", function() {
|
||||
var activeitemtheme = $(this).attr("active-item-theme");
|
||||
$('.pcoded-navbar').attr("active-item-theme", activeitemtheme);
|
||||
});
|
||||
};
|
||||
|
||||
handleactiveitemtheme();
|
||||
/* Active Item Theme Change function Close */
|
||||
|
||||
/* Theme background pattren Change function Start */
|
||||
function handlethemebgpattern() {
|
||||
$('.theme-color > a.themebg-pattern').on("click", function() {
|
||||
var themebgpattern = $(this).attr("themebg-pattern");
|
||||
$('body').attr("themebg-pattern", themebgpattern);
|
||||
});
|
||||
};
|
||||
|
||||
handlethemebgpattern();
|
||||
/* Theme background pattren Change function Close */
|
||||
|
||||
/* Theme Layout Change function start*/
|
||||
function handlethemeverticallayout() {
|
||||
$('#theme-layout').change(function() {
|
||||
if ($(this).is(":checked")) {
|
||||
$('.pcoded').attr('vertical-layout', "box");
|
||||
$('#bg-pattern-visiblity').removeClass('d-none');
|
||||
|
||||
} else {
|
||||
$('.pcoded').attr('vertical-layout', "wide");
|
||||
$('#bg-pattern-visiblity').addClass('d-none');
|
||||
}
|
||||
});
|
||||
};
|
||||
handlethemeverticallayout();
|
||||
/* Theme Layout Change function Close*/
|
||||
/* Menu effect change function start*/
|
||||
function handleverticalMenueffect() {
|
||||
$('#vertical-menu-effect').val('shrink').on('change', function(get_value) {
|
||||
get_value = $(this).val();
|
||||
$('.pcoded').attr('vertical-effect', get_value);
|
||||
});
|
||||
};
|
||||
|
||||
handleverticalMenueffect();
|
||||
/* Menu effect change function Close*/
|
||||
|
||||
/* Vertical Item border Style change function Start*/
|
||||
function handleverticalboderstyle() {
|
||||
$('#vertical-border-style').val('solid').on('change', function(get_value) {
|
||||
get_value = $(this).val();
|
||||
$('.pcoded-navbar .pcoded-item').attr('item-border-style', get_value);
|
||||
});
|
||||
};
|
||||
|
||||
handleverticalboderstyle();
|
||||
/* Vertical Item border Style change function Close*/
|
||||
|
||||
/* Vertical Dropdown Icon change function Start*/
|
||||
function handleVerticalDropDownIconStyle() {
|
||||
$('#vertical-dropdown-icon').val('style1').on('change', function(get_value) {
|
||||
get_value = $(this).val();
|
||||
$('.pcoded-navbar .pcoded-hasmenu').attr('dropdown-icon', get_value);
|
||||
});
|
||||
};
|
||||
|
||||
handleVerticalDropDownIconStyle();
|
||||
/* Vertical Dropdown Icon change function Close*/
|
||||
/* Vertical SubItem Icon change function Start*/
|
||||
|
||||
function handleVerticalSubMenuItemIconStyle() {
|
||||
$('#vertical-subitem-icon').val('style5').on('change', function(get_value) {
|
||||
get_value = $(this).val();
|
||||
$('.pcoded-navbar .pcoded-hasmenu').attr('subitem-icon', get_value);
|
||||
});
|
||||
};
|
||||
|
||||
handleVerticalSubMenuItemIconStyle();
|
||||
/* Vertical SubItem Icon change function Close*/
|
||||
/* Vertical Navbar Position change function Start*/
|
||||
function handlesidebarposition() {
|
||||
$('#sidebar-position').change(function() {
|
||||
if ($(this).is(":checked")) {
|
||||
$('.pcoded-navbar').attr("pcoded-navbar-position", 'fixed');
|
||||
$('.pcoded-header .pcoded-left-header').attr("pcoded-lheader-position", 'fixed');
|
||||
} else {
|
||||
$('.pcoded-navbar').attr("pcoded-navbar-position", 'absolute');
|
||||
$('.pcoded-header .pcoded-left-header').attr("pcoded-lheader-position", 'relative');
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
handlesidebarposition();
|
||||
/* Vertical Navbar Position change function Close*/
|
||||
/* Vertical Header Position change function Start*/
|
||||
function handleheaderposition() {
|
||||
$('#header-position').change(function() {
|
||||
if ($(this).is(":checked")) {
|
||||
$('.pcoded-header').attr("pcoded-header-position", 'fixed');
|
||||
$('.pcoded-navbar').attr("pcoded-header-position", 'fixed');
|
||||
$('.pcoded-main-container').css('margin-top', $(".pcoded-header").outerHeight());
|
||||
} else {
|
||||
$('.pcoded-header').attr("pcoded-header-position", 'relative');
|
||||
$('.pcoded-navbar').attr("pcoded-header-position", 'relative');
|
||||
$('.pcoded-main-container').css('margin-top', '0px');
|
||||
}
|
||||
});
|
||||
};
|
||||
handleheaderposition();
|
||||
/* Vertical Header Position change function Close*/
|
||||
/* collapseable Left Header Change Function Start here*/
|
||||
function handlecollapseLeftHeader() {
|
||||
$('#collapse-left-header').change(function() {
|
||||
if ($(this).is(":checked")) {
|
||||
$('.pcoded-header, .pcoded ').removeClass('iscollapsed');
|
||||
$('.pcoded-header, .pcoded').addClass('nocollapsed');
|
||||
} else {
|
||||
$('.pcoded-header, .pcoded').addClass('iscollapsed');
|
||||
$('.pcoded-header, .pcoded').removeClass('nocollapsed');
|
||||
}
|
||||
});
|
||||
};
|
||||
handlecollapseLeftHeader();
|
||||
/* collapseable Left Header Change Function Close here*/
|
||||
});
|
||||
|
||||
function handlemenutype(get_value) {
|
||||
$('.pcoded').attr('nav-type', get_value);
|
||||
};
|
||||
|
||||
handlemenutype("st2");
|
||||
134
safekiso-server/modules/base/wwwroot/admindek/js/vertical/vertical-layout.min.js
vendored
Normal file
134
safekiso-server/modules/base/wwwroot/admindek/js/vertical/vertical-layout.min.js
vendored
Normal file
@@ -0,0 +1,134 @@
|
||||
"use strict!";
|
||||
|
||||
function handlemenutype(e) {
|
||||
$(".pcoded").attr("nav-type", e)
|
||||
}
|
||||
$(document).ready(function() {
|
||||
$("#pcoded").pcodedmenu({
|
||||
themelayout: "vertical",
|
||||
verticalMenuplacement: "left",
|
||||
verticalMenulayout: "wide",
|
||||
MenuTrigger: "click",
|
||||
SubMenuTrigger: "click",
|
||||
activeMenuClass: "active",
|
||||
ThemeBackgroundPattern: "theme1",
|
||||
HeaderBackground: "themelight1",
|
||||
LHeaderBackground: "theme1",
|
||||
NavbarBackground: "theme1",
|
||||
ActiveItemBackground: "theme1",
|
||||
SubItemBackground: "theme2",
|
||||
LogoTheme: "theme6",
|
||||
ActiveItemStyle: "style0",
|
||||
ItemBorder: !0,
|
||||
ItemBorderStyle: "solid",
|
||||
freamtype: "theme1",
|
||||
SubItemBorder: !1,
|
||||
DropDownIconStyle: "style1",
|
||||
menutype: "st2",
|
||||
layouttype: "light",
|
||||
FixedNavbarPosition: !0,
|
||||
FixedHeaderPosition: !0,
|
||||
collapseVerticalLeftHeader: !0,
|
||||
VerticalSubMenuItemIconStyle: "style1",
|
||||
VerticalNavigationView: "view1",
|
||||
verticalMenueffect: {
|
||||
desktop: "shrink",
|
||||
tablet: "overlay",
|
||||
phone: "overlay"
|
||||
},
|
||||
defaultVerticalMenu: {
|
||||
desktop: "expanded",
|
||||
tablet: "offcanvas",
|
||||
phone: "offcanvas"
|
||||
},
|
||||
onToggleVerticalMenu: {
|
||||
desktop: "offcanvas",
|
||||
tablet: "expanded",
|
||||
phone: "expanded"
|
||||
}
|
||||
}),
|
||||
function() {
|
||||
$(".theme-color > a.Layout-type").on("click", function() {
|
||||
var e = $(this).attr("layout-type");
|
||||
$(".pcoded").attr("layout-type", e), "dark" == e && ($(".pcoded-header").attr("header-theme", "theme6"), $(".pcoded-navbar").attr("navbar-theme", "theme1"), $(".pcoded-navbar").attr("active-item-theme", "theme1"), $(".pcoded").attr("fream-type", "theme1"), $("body").addClass("dark"), $("body").attr("themebg-pattern", "theme1"), $(".pcoded-navigation-label").attr("menu-title-theme", "theme1")), "light" == e && ($(".pcoded-header").attr("header-theme", "themelight1"), $(".pcoded-navbar").attr("navbar-theme", "themelight1"), $(".pcoded-navigation-label").attr("menu-title-theme", "theme2"), $(".pcoded-navbar").attr("active-item-theme", "theme1"), $(".pcoded").attr("fream-type", "theme1"), $("body").removeClass("dark"), $("body").attr("themebg-pattern", "theme1"))
|
||||
})
|
||||
}(),
|
||||
function() {
|
||||
$(".theme-color > a.leftheader-theme").on("click", function() {
|
||||
var e = $(this).attr("menu-caption");
|
||||
$(".pcoded-navigation-label").attr("menu-title-theme", e)
|
||||
})
|
||||
}(),
|
||||
function() {
|
||||
$(".theme-color > a.header-theme-full").on("click", function() {
|
||||
var e = $(this).attr("header-theme"),
|
||||
t = $(this).attr("active-item-color");
|
||||
$(".pcoded-header").attr("header-theme", e), $(".navbar-logo").attr("logo-theme", e), $(".pcoded-navbar").attr("active-item-theme", t), $(".pcoded").attr("fream-type", e), $("body").attr("themebg-pattern", e), "theme6" == e && $(".pcoded-navbar").attr("active-item-theme", "theme1")
|
||||
})
|
||||
}(),
|
||||
function() {
|
||||
$(".theme-color > a.header-theme").on("click", function() {
|
||||
var e = $(this).attr("header-theme"),
|
||||
t = $(this).attr("active-item-color");
|
||||
$(".pcoded-header").attr("header-theme", e), $(".pcoded-navbar").attr("active-item-theme", t), $(".pcoded").attr("fream-type", e), $("body").attr("themebg-pattern", e), "theme6" == e && $(".pcoded-navbar").attr("active-item-theme", "theme1")
|
||||
})
|
||||
}(),
|
||||
function() {
|
||||
$(".theme-color > a.navbar-theme").on("click", function() {
|
||||
var e = $(this).attr("navbar-theme");
|
||||
$(".pcoded-navbar").attr("navbar-theme", e), "themelight1" == e && $(".pcoded-navigation-label").attr("menu-title-theme", "theme2"), "theme1" == e && $(".pcoded-navigation-label").attr("menu-title-theme", "theme1")
|
||||
})
|
||||
}(),
|
||||
function() {
|
||||
$(".theme-color > a.active-item-theme").on("click", function() {
|
||||
var e = $(this).attr("active-item-theme");
|
||||
$(".pcoded-navbar").attr("active-item-theme", e)
|
||||
})
|
||||
}(),
|
||||
function() {
|
||||
$(".theme-color > a.themebg-pattern").on("click", function() {
|
||||
var e = $(this).attr("themebg-pattern");
|
||||
$("body").attr("themebg-pattern", e)
|
||||
})
|
||||
}(),
|
||||
function() {
|
||||
$("#theme-layout").change(function() {
|
||||
$(this).is(":checked") ? ($(".pcoded").attr("vertical-layout", "box"), $("#bg-pattern-visiblity").removeClass("d-none")) : ($(".pcoded").attr("vertical-layout", "wide"), $("#bg-pattern-visiblity").addClass("d-none"))
|
||||
})
|
||||
}(),
|
||||
function() {
|
||||
$("#vertical-menu-effect").val("shrink").on("change", function(e) {
|
||||
e = $(this).val(), $(".pcoded").attr("vertical-effect", e)
|
||||
})
|
||||
}(),
|
||||
function() {
|
||||
$("#vertical-border-style").val("solid").on("change", function(e) {
|
||||
e = $(this).val(), $(".pcoded-navbar .pcoded-item").attr("item-border-style", e)
|
||||
})
|
||||
}(),
|
||||
function() {
|
||||
$("#vertical-dropdown-icon").val("style1").on("change", function(e) {
|
||||
e = $(this).val(), $(".pcoded-navbar .pcoded-hasmenu").attr("dropdown-icon", e)
|
||||
})
|
||||
}(),
|
||||
function() {
|
||||
$("#vertical-subitem-icon").val("style5").on("change", function(e) {
|
||||
e = $(this).val(), $(".pcoded-navbar .pcoded-hasmenu").attr("subitem-icon", e)
|
||||
})
|
||||
}(),
|
||||
function() {
|
||||
$("#sidebar-position").change(function() {
|
||||
$(this).is(":checked") ? ($(".pcoded-navbar").attr("pcoded-navbar-position", "fixed"), $(".pcoded-header .pcoded-left-header").attr("pcoded-lheader-position", "fixed")) : ($(".pcoded-navbar").attr("pcoded-navbar-position", "absolute"), $(".pcoded-header .pcoded-left-header").attr("pcoded-lheader-position", "relative"))
|
||||
})
|
||||
}(),
|
||||
function() {
|
||||
$("#header-position").change(function() {
|
||||
$(this).is(":checked") ? ($(".pcoded-header").attr("pcoded-header-position", "fixed"), $(".pcoded-navbar").attr("pcoded-header-position", "fixed"), $(".pcoded-main-container").css("margin-top", $(".pcoded-header").outerHeight())) : ($(".pcoded-header").attr("pcoded-header-position", "relative"), $(".pcoded-navbar").attr("pcoded-header-position", "relative"), $(".pcoded-main-container").css("margin-top", "0px"))
|
||||
})
|
||||
}(),
|
||||
function() {
|
||||
$("#collapse-left-header").change(function() {
|
||||
$(this).is(":checked") ? ($(".pcoded-header, .pcoded ").removeClass("iscollapsed"), $(".pcoded-header, .pcoded").addClass("nocollapsed")) : ($(".pcoded-header, .pcoded").addClass("iscollapsed"), $(".pcoded-header, .pcoded").removeClass("nocollapsed"))
|
||||
})
|
||||
}()
|
||||
}), handlemenutype("st2");
|
||||
Reference in New Issue
Block a user