code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
/*
Copyright 2012 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | JavaScript |
/*
Copyright 2012 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | JavaScript |
/*
Copyright 2012 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | JavaScript |
/*
Copyright 2012 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to i... | JavaScript |
/*
Copyright 2012 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | JavaScript |
/*
Copyright 2012 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | JavaScript |
/*
Copyright 2012 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | JavaScript |
/*
Copyright 2012 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | JavaScript |
/*
Copyright 2012 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | JavaScript |
/*
Copyright 2012 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | JavaScript |
/*
Copyright 2012 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | JavaScript |
/*
Copyright 2012 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | JavaScript |
/*
Copyright 2012 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | JavaScript |
/*
Copyright 2012 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | JavaScript |
({
appDir: 'static',
baseUrl: 'js',
dir: 'static-min',
paths: {jquery: 'empty:'},
modules: [
{name: 'main'},
{name: 'admin-main'}
]
}) | JavaScript |
/**
* @file
* SimpleRedirect.js
*
* Simple A/B Test library custom test: Simple Redirect.
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://code.google.com/p/a... | JavaScript |
/**
* @file
* LoadCSS.js
*
* Simple A/B Test library custom test: Load custom CSS.
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://code.google.com/p/abtest-j... | JavaScript |
/**
* @file
* ABTest.js
*
* Simple A/B Test library.
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://code.google.com/p/abtest-js/wiki/License
* If you did n... | JavaScript |
/**
* Aby命名空间
*
* @author xjlong
* @version 1.0.0
* @data 2010-7-2 12:48
* @type
*/
var aby = Aby = {
version : '1.0.0.0',
author : 'xjlong',
jsErrorCallBack : null,
showErrorMessage : true,
clearError : false,
BLANK_IMAGE_URL: " resources/images/s.gif",
BLANK_IMG_URL: "resources/images/s.... | JavaScript |
/**
* 重写window的onError事件
*
* @param {}
* msg 错误信息
* @param {}
* fileName 文件名
* @param {}
* rowIndex 行数
* @return {Boolean}
*/
window.onerror = function(msg, fileName, rowIndex) {
if (Aby) {
if (Aby.showErrorMessage || Aby.showErrorMsg) {
Aby.util.error("... | JavaScript |
/**
* 重写window的onError事件
*
* @param {}
* msg 错误信息
* @param {}
* fileName 文件名
* @param {}
* rowIndex 行数
* @return {Boolean}
*/
window.onerror = function(msg, fileName, rowIndex) {
if (Aby) {
if (Aby.showErrorMessage || Aby.showErrorMsg) {
Aby.util.error("... | JavaScript |
function tampilpopover() {
$('#divskpd').popover({
trigger: "hover",
placement: "top",
delay: {hide: 800},
title: "Data Detail SKPD",
html: true,
content: function() {
return $('#popover_skpd').html();
}
});
$('#divpegawai').popover({
... | JavaScript |
var asInitVals = new Array();
$(document).ready(function() {
var oTable = $('#skpdtable').dataTable({
"oLanguage": {
"sSearch": "Pencarian:"
}, "bPaginate": true,
"sPaginationType": "bootstrap",
"bInfo": true,
"dom": '<"top"l... | JavaScript |
var asInitVals = new Array();
$(document).ready(function() {
var oTable = $('#mtxtable').dataTable({
"oLanguage": {
"sSearch": "Search all columns:"
}, "bPaginate": true,
"sPaginationType": "bootstrap",
"bInfo": true,
"fnRowCallback": function(nRow, aData, iDisp... | JavaScript |
var asInitVals = new Array();
$(document).ready(function() {
var oTable = $('#agamatable').dataTable({
"oLanguage": {
"sSearch": "Search all columns:"
}, "bPaginate": true,
"sPaginationType": "bootstrap",
"bInfo": true,
"fnRowCallback": function(nRow, aData, iDi... | JavaScript |
function grafikkomposisiagama(jenis, urljson, target, judul, judulsumbux, baseurl, satkerid) {
$.getJSON(urljson, function(hasil) {
$('#' + target).highcharts({
chart: {
plotShadow: true,
type: 'column'
},
title: {
text: jud... | JavaScript |
var asInitVals = new Array();
$(document).ready(function() {
var oTable = $('#usiatable').dataTable({
"oLanguage": {
"sSearch": "Search all columns:"
}, "bPaginate": true,
"sPaginationType": "bootstrap",
"bInfo": true,
"fnRowCallback": function(nRow, aData, iDis... | JavaScript |
var asInitVals = new Array();
$(document).ready(function() {
var oTable = $('#agamatable').dataTable({
"oLanguage": {
"sSearch": "Search all columns:"
}, "bPaginate": true,
"sPaginationType": "bootstrap",
"bInfo": true,
"fnRowCallback": function(nRow, aData, iDi... | JavaScript |
var asInitVals = new Array();
$(document).ready(function() {
var oTable = $('#pendidikantable').dataTable({
"oLanguage": {
"sSearch": "Search all columns:"
}, "bPaginate": true,
"sPaginationType": "bootstrap",
"bInfo": true,
"fnRowCallback": function(nRow, aData... | JavaScript |
var asInitVals = new Array();
$(document).ready(function() {
var oTable = $('#sextable').dataTable({
"oLanguage": {
"sSearch": "Search all columns:"
}, "bPaginate": true,
"sPaginationType": "bootstrap",
"bInfo": true,
"fnRowCallback": function(nRow, aData, iDispl... | JavaScript |
var asInitVals = new Array();
$(document).ready(function() {
var oTable = $('#eselontable').dataTable({
"oLanguage": {
"sSearch": "Search all columns:"
}, "bPaginate": true,
"sPaginationType": "bootstrap",
"bInfo": true,
"fnRowCallback": function(nRow, aData, iD... | JavaScript |
var asInitVals = new Array();
$(document).ready(function() {
var oTable = $('#pangkattable').dataTable({
"oLanguage": {
"sSearch": "Search all columns:"
}, "bPaginate": true,
"sPaginationType": "bootstrap",
"bInfo": true,
"fnRowCallback": function(nRow, aData, i... | JavaScript |
var asInitVals = new Array();
$(document).ready(function() {
var oTable = $('#petaeselontable').dataTable({
"oLanguage": {
"sSearch": "Search all columns:"
}, "bPaginate": true,
"sPaginationType": "bootstrap",
"bSortClasses": false,
"sDom": '<"top">lrt<"bottom"i... | JavaScript |
function gridjabatan(varalamatds, baseurl) {
if (typeof myTable == 'undefined') {
myTable = $('#jabatantable').dataTable({
"bPaginate": true,
"sPaginationType": "bootstrap",
"bJQueryUI": false,
"bProcessing": true,
"bServerSide": true,
... | JavaScript |
function gridpopupjeniskelamin(varurl, idsatker, idjeniskelamin) {
$("#stattable").show();
if (typeof myTable == 'undefined') {
myTable = $('#stattable').dataTable({
"bPaginate": true,
"sPaginationType": "bootstrap",
"bJQueryUI": false,
"bProcessing": tr... | JavaScript |
$(document).ready(function() {
$('.fancybox-buttons').fancybox({
openEffect: 'none',
closeEffect: 'none',
prevEffect: 'none',
nextEffect: 'none',
closeBtn: false,
helpers: {
title: {
type: 'inside'
},
buttons: {}
... | JavaScript |
function gridpopupusia(varurl, idsatker, usiapilih) {
$("#stattable").show();
if (typeof myTable == 'undefined') {
myTable = $('#stattable').dataTable({
"bPaginate": true,
"sPaginationType": "bootstrap",
"bJQueryUI": false,
"bProcessing": true,
... | JavaScript |
function gridpopuppendidikan(varurl, idsatker, pendidikan) {
$("#stattable").show();
if (typeof myTable == 'undefined') {
myTable = $('#stattable').dataTable({
"bPaginate": true,
"sPaginationType": "bootstrap",
"bJQueryUI": false,
"bProcessing": true,
... | JavaScript |
function gridpopuppangkat(varurl, idsatker, idpangkat) {
$("#stattable").show();
if (typeof myTable == 'undefined') {
myTable = $('#stattable').dataTable({
"bPaginate": true,
"sPaginationType": "bootstrap",
"bJQueryUI": false,
"bProcessing": true,
... | JavaScript |
function gridpopupagama(varurl, idsatker, idagama) {
$("#stattable").show();
if (typeof myTable == 'undefined') {
myTable = $('#stattable').dataTable({
"bPaginate": true,
"sPaginationType": "bootstrap",
"bJQueryUI": false,
"bProcessing": true,
... | JavaScript |
function gridpopupeselon(varurl, idsatker, ideselon) {
$("#stattable").show();
if (typeof myTable == 'undefined') {
myTable = $('#stattable').dataTable({
"bPaginate": true,
"sPaginationType": "bootstrap",
"bJQueryUI": false,
"bProcessing": true,
... | JavaScript |
function grid(varurl, baseurl) {
$("#stattable").show();
if (typeof myTable == 'undefined') {
myTable = $('#stattable').dataTable({
"bPaginate": true,
"sPaginationType": "bootstrap",
"bJQueryUI": false,
"bProcessing": true,
"bServerSide": true,... | JavaScript |
function gridpopupjenisjabatan(varurl, idsatker, jenisjabatan) {
$("#stattable").show();
if (typeof myTable == 'undefined') {
myTable = $('#stattable').dataTable({
"bPaginate": true,
"sPaginationType": "bootstrap",
"bJQueryUI": false,
"bProcessing": true,
... | JavaScript |
/**
Core script to handle the entire theme and core functions
**/
var Metronic = function () {
// IE mode
var isRTL = false;
var isIE8 = false;
var isIE9 = false;
var isIE10 = false;
var resizeHandlers = [];
var assetsPath = '../../assets/';
var globalImgPath = assetsP... | JavaScript |
/***
Wrapper/Helper Class for datagrid based on jQuery Datatable Plugin
***/
var Datatable = function () {
var tableOptions; // main options
var dataTable; // datatable object
var table; // actual table jquery object
var tableContainer; // actual table container object
var tableWrapper; //... | JavaScript |
/*!
* jQVMap Version 1.0
*
* http://jqvmap.com
*
* Copyright 2012, Peter Schmalfeldt <manifestinteractive@gmail.com>
* Copyright 2011-2012, Kirill Lebedev
* Licensed under the MIT license.
*
* Fork Me @ https://github.com/manifestinteractive/jqvmap
*/
(function ($) {
var apiParams = {
colors: 1,
va... | JavaScript |
/**
* @license wysihtml5 v0.3.0
* https://github.com/xing/wysihtml5
*
* Author: Christopher Blum (https://github.com/tiff)
*
* Copyright (C) 2012 XING AG
* Licensed under the MIT license (MIT)
*
*/
var wysihtml5 = {
version: "0.3.0",
// namespaces
commands: {},
dom: {},
qu... | JavaScript |
;(function(){
/**
* Require the given path.
*
* @param {String} path
* @return {Object} exports
* @api public
*/
function require(path, parent, orig) {
var resolved = require.resolve(path);
// lookup failed
if (null == resolved) {
orig = orig || path;
parent = parent || 'root';
var err = new ... | JavaScript |
// Released under MIT license
// Copyright (c) 2009-2010 Dominic Baggott
// Copyright (c) 2009-2010 Ash Berlin
// Copyright (c) 2011 Christoph Dorn <christoph@christophdorn.com> (http://www.christophdorn.com)
(function( expose ) {
/**
* class Markdown
*
* Markdown processing in Javascript done right. W... | JavaScript |
/*
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
*
* Uses the built in easing capabilities added In jQuery 1.1
* to offer multiple easing options
*
* TERMS OF USE - jQuery Easing
*
* Open source under the BSD License.
*
* Copyright В© 2008 George McGinley Smith
* All rights reserved.
* ... | JavaScript |
/*!
Holder - 2.3.2 - client side image placeholders
(c) 2012-2014 Ivan Malopinsky / http://imsky.co
Provided under the MIT License.
Commercial use requires attribution.
*/
var Holder = Holder || {};
(function (app, win) {
var system_config = {
use_svg: false,
use_canvas: false,
use_fallback: false
};
var instance... | JavaScript |
(function(root, factory) {
if(typeof exports === 'object') {
module.exports = factory();
}
else if(typeof define === 'function' && define.amd) {
define('GMaps', [], factory);
}
root.GMaps = factory();
}(this, function() {
/*!
* GMaps.js v0.4.11
* http://hpneo.github.com/gmaps/
*
* Copyright 201... | JavaScript |
/*
Uniform v2.1.0
Copyright © 2009 Josh Pyles / Pixelmatrix Design LLC
http://pixelmatrixdesign.com
Requires jQuery 1.3 or newer
Much thanks to Thomas Reynolds and Buck Wilson for their help and advice on
this.
Disabling text selection is made possible by Mathias Bynens
<http://mathiasbynens.be/> and his noSelect p... | JavaScript |
/*!jQuery Knob*/
/**
* Downward compatible, touchable dial
*
* Version: 1.2.8
* Requires: jQuery v1.7+
*
* Copyright (c) 2012 Anthony Terrien
* Under MIT License (http://www.opensource.org/licenses/mit-license.php)
*
* Thanks to vor, eskimoblood, spiffistan, FabrizioC
*/
(function($) {
/**
* Kontrol... | JavaScript |
/*!
* Nestable jQuery Plugin - Copyright (c) 2012 David Bushell - http://dbushell.com/
* Dual-licensed under the BSD or MIT licenses
*/
;(function($, window, document, undefined)
{
var hasTouch = 'ontouchstart' in window;
/**
* Detect CSS pointer-events property
* events are normally disabled on t... | JavaScript |
/* Set the defaults for DataTables initialisation */
$.extend(true, $.fn.dataTable.defaults, {
"dom": "<'row'<'col-md-6 col-sm-12'l><'col-md-6 col-sm-12'f>r><'table-scrollable't><'row'<'col-md-5 col-sm-12'i><'col-md-7 col-sm-12'p>>", // horizobtal scrollable datatable
//"Dom": "<'row'<'col-md-6 col-sm-12'l><... | JavaScript |
/**
Address editable input.
Internally value stored as {city: "Moscow", street: "Lenina", building: "15"}
@class address
@extends abstractinput
@final
@example
<a href="#" id="address" data-type="address" data-pk="1">awesome</a>
<script>
$(function(){
$('#address').editable({
url: '/post',
title: '... | JavaScript |
/**
Bootstrap wysihtml5 editor. Based on [bootstrap-wysihtml5](https://github.com/jhollingworth/bootstrap-wysihtml5).
You should include **manually** distributives of `wysihtml5` and `bootstrap-wysihtml5`:
<link href="js/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/bootstrap-wysihtml5-0.0.2.css" rel="styleshee... | JavaScript |
/**
* Clockface - v1.0.1
* Clockface timepicker for Twitter Bootstrap
*
* Confusion with noon and midnight:
* http://en.wikipedia.org/wiki/12-hour_clock
* Here considered '00:00 am' as midnight and '12:00 pm' as noon.
*
* Author: Vitaliy Potapov
* Project page: http://github.com/vitalets/clockface
* Copyright (c) 2012... | JavaScript |
/*
Plugin: jQuery Parallax
Version 1.1.3
Author: Ian Lunn
Twitter: @IanLunn
Author URL: http://www.ianlunn.co.uk/
Plugin URL: http://www.ianlunn.co.uk/plugins/jquery-parallax/
Dual licensed under the MIT and GPL licenses:
http://www.opensource.org/licenses/mit-license.php
http://www.gnu.org/licenses/gpl.html
*/
(func... | JavaScript |
/**!
* easyPieChart
* Lightweight plugin to render simple, animated and retina optimized pie charts
*
* @license
* @author Robert Fleischmann <rendro87@gmail.com> (http://robert-fleischmann.de)
* @version 2.1.5
**/
(function(root, factory) {
if(typeof exports === 'object') {
module.exports = factor... | JavaScript |
/* Flot plugin for plotting textual data or categories.
Copyright (c) 2007-2014 IOLA and Ole Laursen.
Licensed under the MIT license.
Consider a dataset like [["February", 34], ["March", 20], ...]. This plugin
allows you to plot such a dataset directly.
To enable it, you must specify mode: "categories" on the axis w... | JavaScript |
/* Flot plugin for automatically redrawing plots as the placeholder resizes.
Copyright (c) 2007-2014 IOLA and Ole Laursen.
Licensed under the MIT license.
It works by listening for changes on the placeholder div (through the jQuery
resize event plugin) - if the size changes, it will redraw the plot.
There are no opt... | JavaScript |
/* Javascript plotting library for jQuery, version 0.8.3.
Copyright (c) 2007-2014 IOLA and Ole Laursen.
Licensed under the MIT license.
*/
// first an inline dependency, jquery.colorhelpers.js, we inline it here
// for convenience
/* Plugin for jQuery for working with colors.
*
* Version 1.1.
*
* Inspiration fr... | JavaScript |
/*! RateIt | v1.0.18 / 12/22/2013 | https://rateit.codeplex.com/license
http://rateit.codeplex.com | Twitter: @gjunge
*/
(function ($) {
$.rateit = {
aria : {
resetLabel: 'reset rating',
ratingLabel: 'rating'
}
}
$.fn.rateit = function (p1, p2) {
//quick ... | JavaScript |
/*!
* jQuery Color Animations v2.0pre
* http://jquery.org/
*
* Copyright 2011 John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*/
(function( jQuery, undefined ){
var stepHooks = "backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor col... | JavaScript |
/**
* @version: 1.3.5
* @author: Dan Grossman http://www.dangrossman.info/
* @date: 2014-03-19
* @copyright: Copyright (c) 2012-2014 Dan Grossman. All rights reserved.
* @license: Licensed under Apache License v2.0. See http://www.apache.org/licenses/LICENSE-2.0
* @website: http://www.improvely.com/
*/
!function ($, mo... | JavaScript |
/*!
* MockJax - jQuery Plugin to Mock Ajax requests
*
* Version: 1.5.0pre
* Released:
* Home: http://github.com/appendto/jquery-mockjax
* Author: Jonathan Sharp (http://jdsharp.com)
* License: MIT,GPL
*
* Copyright (c) 2011 appendTo LLC.
* Dual licensed under the MIT or GPL licenses.
* http:... | JavaScript |
/*
* Gritter for jQuery
* http://www.boedesign.com/
*
* Copyright (c) 2012 Jordan Boesch
* Dual licensed under the MIT and GPL licenses.
*
* Date: February 24, 2012
* Version: 1.7.4
*/
(function($){
/**
* Set it up as an object under the jQuery namespace
*/
$.gritter = {};
/**
* Set up global optio... | JavaScript |
/*
* jQuery Iframe Transport Plugin 1.8.2
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2011, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
/* global define, window, document */
(function (factory) {
'use strict';
... | JavaScript |
/*
* MultiSelect v0.9.11
* Copyright (c) 2012 Louis Cuny
*
* This program is free software. It comes without any warranty, to
* the extent permitted by applicable law. You can redistribute it
* and/or modify it under the terms of the Do What The Fuck You Want
* To Public License, Version 2, as published by Sam Hocevar.... | JavaScript |
var ComponentsIonSliders = function () {
return {
//main function to initiate the module
init: function () {
$("#range_1").ionRangeSlider({
min: 0,
max: 5000,
from: 1000,
to: 4000,
type: 'double'... | JavaScript |
var Search = function () {
return {
//main function to initiate the module
init: function () {
if (jQuery().datepicker) {
$('.date-picker').datepicker();
}
Metronic.initFancybox();
}
};
}(); | JavaScript |
var ComponentsEditors = function () {
var handleWysihtml5 = function () {
if (!jQuery().wysihtml5) {
return;
}
if ($('.wysihtml5').size() > 0) {
$('.wysihtml5').wysihtml5({
"stylesheets": ["../../assets/global/plugins/bootstrap-wysihtml5... | JavaScript |
var TableManaged = function () {
var initTable1 = function () {
var table = $('#sample_1');
// begin first table
table.dataTable({
"columns": [{
"orderable": false
}, {
"orderable": true
}, {
... | JavaScript |
var UITree = function () {
var handleSample1 = function () {
$('#tree_1').jstree({
"core" : {
"themes" : {
"responsive": false
}
},
"types" : {
"default" : {
... | JavaScript |
var ComponentsDropdowns = function () {
var handleSelect2 = function () {
$('#select2_sample1').select2({
placeholder: "Select an option",
allowClear: true
});
$('#select2_sample2').select2({
placeholder: "Select a State",
allowCl... | JavaScript |
var ComponentsjQueryUISliders = function () {
return {
//main function to initiate the module
init: function () {
// basic
$(".slider-basic").slider(); // basic sliders
// vertical range sliders
$("#slider-range").slider({
... | JavaScript |
var ComingSoon = function () {
return {
//main function to initiate the module
init: function () {
var austDay = new Date();
austDay = new Date(austDay.getFullYear() + 1, 1 - 1, 26);
$('#defaultCountdown').countdown({until: austDay});
$('#year... | JavaScript |
var Lock = function () {
return {
//main function to initiate the module
init: function () {
$.backstretch([
"../../assets/admin/pages/media/bg/1.jpg",
"../../assets/admin/pages/media/bg/2.jpg",
"../../assets/admin/pages/media/bg/3.jpg",
... | JavaScript |
var FormFileUpload = function () {
return {
//main function to initiate the module
init: function () {
// Initialize the jQuery File Upload widget:
$('#fileupload').fileupload({
disableImageResize: false,
autoUpload: false,
... | JavaScript |
var ComponentsPickers = function () {
var handleDatePickers = function () {
if (jQuery().datepicker) {
$('.date-picker').datepicker({
rtl: Metronic.isRTL(),
orientation: "left",
autoclose: true
});
//$('body').re... | JavaScript |
var EcommerceProducts = function () {
var initPickers = function () {
//init date pickers
$('.date-picker').datepicker({
rtl: Metronic.isRTL(),
autoclose: true
});
}
var handleProducts = function() {
var grid = new Datatable();
... | JavaScript |
var MapsGoogle = function () {
var mapBasic = function () {
new GMaps({
div: '#gmap_basic',
lat: -12.043333,
lng: -77.028333
});
}
var mapMarker = function () {
var map = new GMaps({
div: '#gmap_marker',
lat: -... | JavaScript |
var TableEditable = function () {
var handleTable = function () {
function restoreRow(oTable, nRow) {
var aData = oTable.fnGetData(nRow);
var jqTds = $('>td', nRow);
for (var i = 0, iLen = jqTds.length; i < iLen; i++) {
oTable.fnUpdate(aData[i]... | JavaScript |
var PortletDraggable = function () {
return {
//main function to initiate the module
init: function () {
if (!jQuery().sortable) {
return;
}
$("#sortable_portlets").sortable({
connectWith: ".portlet",
... | JavaScript |
var MapsVector = function () {
var setMap = function (name) {
var data = {
map: 'world_en',
backgroundColor: null,
borderColor: '#333333',
borderOpacity: 0.5,
borderWidth: 1,
color: '#c6c6c6',
enableZoom: true,
... | JavaScript |
var Calendar = function () {
return {
//main function to initiate the module
init: function () {
Calendar.initCalendar();
},
initCalendar: function () {
if (!jQuery().fullCalendar) {
return;
}
var dat... | JavaScript |
var FormSamples = function () {
return {
//main function to initiate the module
init: function () {
// use select2 dropdown instead of chosen as select2 works fine with bootstrap on responsive layouts.
$('.select2_category').select2({
placeholder: "Se... | JavaScript |
var Tasks = function () {
return {
//main function to initiate the module
initDashboardWidget: function () {
$('.task-list input[type="checkbox"]').change(function() {
if ($(this).is(':checked')) {
$(this).parents('li').addClass("task-done");
} else {
$(this).pa... | JavaScript |
var UINestable = function () {
var updateOutput = function (e) {
var list = e.length ? e : $(e.target),
output = list.data('output');
if (window.JSON) {
output.val(window.JSON.stringify(list.nestable('serialize'))); //, null, 2));
} else {
output.... | JavaScript |
var TableAjax = function () {
var initPickers = function () {
//init date pickers
$('.date-picker').datepicker({
rtl: Metronic.isRTL(),
autoclose: true
});
}
var handleRecords = function () {
var grid = new Datatable();
grid.i... | JavaScript |
var FormImageCrop = function () {
var demo1 = function() {
$('#demo1').Jcrop();
}
var demo2 = function() {
var jcrop_api;
$('#demo2').Jcrop({
onChange: showCoords,
onSelect: showCoords,
onRelease: clearCoords
},function(){
... | JavaScript |
var Login = function () {
var handleLogin = function() {
$('.login-form').validate({
errorElement: 'span', //default input error message container
errorClass: 'help-block', // default input error message class
focusInvalid: false, // do not focus the last invalid input
... | JavaScript |
var ContactUs = function () {
return {
//main function to initiate the module
init: function () {
var map;
$(document).ready(function(){
map = new GMaps({
div: '#map',
lat: -13.004333,
lng: -38.494333
});
var marker = map.addMarker({
lat:... | JavaScript |
var ComponentsKnobDials = function () {
return {
//main function to initiate the module
init: function () {
//knob does not support ie8 so skip it
if (!jQuery().knob || Metronic.isIE8()) {
return;
}
// general knob... | JavaScript |
var FormValidation = function () {
// basic validation
var handleValidation1 = function() {
// for more info visit the official plugin documentation:
// http://docs.jquery.com/Plugins/Validation
var form1 = $('#form_sample_1');
var error1 = $('.alert-danger... | JavaScript |
var UINotific8 = function () {
return {
//main function to initiate the module
init: function () {
$('#notific8_show').click(function(event) {
var settings = {
theme: $('#notific8_theme').val(),
... | JavaScript |
var ComponentsFormTools = function () {
var handleTwitterTypeahead = function() {
// Example #1
// instantiate the bloodhound suggestion engine
var numbers = new Bloodhound({
datumTokenizer: function(d) { return Bloodhound.tokenizers.whitespace(d.num); },
queryT... | JavaScript |
var EcommerceOrdersView = function () {
var handleInvoices = function () {
var grid = new Datatable();
grid.init({
src: $("#datatable_invoices"),
onSuccess: function (grid) {
// execute some code after table records loaded
},
... | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.