code
stringlengths
1
2.08M
language
stringclasses
1 value
// ┌──────────────────────────────────────────────── // │ filter class :: requirement // │ 1 :: rms.control.js // │ 2 :: rms.dialog.js // │ 3 :: // │ 4 :: // │ 5 :: // └──────────────────────────────────────────────── //=========================================================...
JavaScript
(function (RMS) { //public properties var DynamicTemplate = function (settings) { this.init(settings); }; var $entry, $template; var datetime; //====================================================== DynamicTemplate.prototype.isCompleted = false; DynamicTempl...
JavaScript
//=============================================================================================== // Mod: Core // Author: thien.l.do // Ref: http://splitterjsobj.sourceforge.net/ // Use: jquery.splitter.js // Edit: // Create: 2011-06-22 // Modify: yyyy-MM-dd //==============...
JavaScript
(function (RMS) { var Control = RMS.BaseControl.prototype.extend(), defaults = { id: RMS.pub.randomGuid(), width: 100, height: 200, controlType: '1' }, instance; Control.prototype.init = function (settings) { //default ...
JavaScript
/* File Created: May 12, 2014 */
JavaScript
/* RMS Constructor Class Global define */ var RMS = {}; /* RMS Custom function defination */ RMS.consts = { meta: 'data-meta', request: 'data-request', settings: 'data-settings' }; RMS.pub = { //string utilities string: { Format: function (text) { if (argume...
JavaScript
// ┌──────────────────────────────────────────────── // │ control class :: requirement // │ 1 :: rms.core.js // └──────────────────────────────────────────────── //===================================================================================================== // Class Base Control Contructor //==========...
JavaScript
/* File Created: May 12, 2014 */
JavaScript
// ┌──────────────────────────────────────────────── // │ control class :: requirement // │ 1 :: rms.all.js // │ 2 :: rms.control.js // │ 3 :: // │ 4 :: // │ 5 :: // └──────────────────────────────────────────────── //=====================================================================================...
JavaScript
//===================================================================================================== // ┌──────────────────────────────────────────────── // │ control class :: requirement // │ 1 :: rms.core.js // │ 2 :: rms.basecontrol.js // │ 3 :: // │ 4 :: // │ 5 :: // └───────────────────────────...
JavaScript
/* RMS Constructor Class Global define */ var RMS = {}; /* RMS Custom function defination */ RMS.consts = { meta: 'data-meta', request: 'data-request' }; RMS.pub = { //string utilities string: { Format: function (text) { if (arguments.length <= 1) { ...
JavaScript
/*! * Globalize * * http://github.com/jquery/globalize * * Copyright Software Freedom Conservancy, Inc. * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license */ (function( window, undefined ) { var Globalize, // private variables regexHex, regexInfinity, regexParseFloat, re...
JavaScript
var menu, nav, toolbar; RMS.front = {}; RMS.front = { loadPage: function (info) { var htmlForm = '<iframe width="100%", height="100%" src="' + info.url + '" /></iframe>'; $('#main_content_panel').html(htmlForm); }, initLayout: function () { //------------------------------...
JavaScript
//var data = new RMS.CCSV2JSON(dataMenu).toJson(); var Xtreedata = { menuitems: [ { ID: 1, Code: 'A', Name: 'Home', Description: '', ParentID: null, LinkURL: '#Home', _level: 0, FaCss: ' fa-home', menuitems: [ { ID: 11, Code: 'A1', Name: 'H...
JavaScript
/** * syncHeight - jQuery plugin to automagically Sync the heights of columns * Made to seemlessly work with the CCS-Framework YAML (yaml.de) * @requires jQuery v1.0.3 or newer * * http://blog.ginader.de/dev/syncheight/ * * Copyright (c) 2007-2013 * Dirk Ginader (ginader.de) * Dirk Jesse (yaml.de) * Dual lice...
JavaScript
/** * Accessible Tabs - jQuery plugin for accessible, unobtrusive tabs * Build to seemlessly work with the CCS-Framework YAML (yaml.de) not depending on YAML though * @requires jQuery - tested with 1.9.1, 1.7 and 1.4.2 but might as well work with older versions * * english article: http://blog.ginader.de/arch...
JavaScript
/** * "Yet Another Multicolumn Layout" - YAML CSS Framework * * (en) Workaround for IE8 und Webkit browsers to fix focus problems when using skiplinks * (de) Workaround für IE8 und Webkit browser, um den Focus zu korrigieren, bei Verwendung von Skiplinks * * @note inspired by Paul Ratcliffe's article * ...
JavaScript
function CTabs(pOptions) { var self = this; this.container = ""; this.options = { active: null, collapsible: false, event: "click", heightStyle: "content", hide: null, show: null, // callbacks activate: null, beforeActivate: null, ...
JavaScript
function CXml(pTagName, pPairValues) { this.tagName = pTagName; this.pairValues = pPairValues; this.init = function () { } this.getXml = function () { var self = this; var node = '<' + self.tagName + ' [ATTRIBUTE]/>'; var sAttribute = ''; try { ...
JavaScript
//=============================================================================================== // Mod: Core // Author: thien.l.do // Ref: http://splitterjsobj.sourceforge.net/ // Use: jquery.splitter.js // Edit: // Create: 2011-06-22 // Modify: yyyy-MM-dd //==============...
JavaScript
/* Required: 1. jquery.slimScroll.js */ function CScroll(opts) { var self = this; this.container = ""; this.options = { wheelStep: 20, width: 'auto', height: '250px', size: '7px', color: '#999', position: 'right', distance: '1px', ...
JavaScript
 $.CFormat = { Culture: function () { return $.getCookie("iCMS:Culture") || "en-US"; }, ParseFloat: function (value, culture) { var thisObj = this; culture = culture || "en-US"; var ret = ""; if (value != "") { ret = $.parseFloat(value, "n", cul...
JavaScript
function CDialog(options) { var self = this; this._dialog = {}; this._count = 0; this._container = ""; this._options = { autoOpen: true, buttonFocus: 0, buttons: "", closeOnEscape: false, closeText: 'close', closeHide: false, frame...
JavaScript
/********************************************************************************************* ** Jquery extend *********************************************************************************************/ $.HtmlEncode = function (text) { var ret = ""; if (typeof text == "string") { ret = text ...
JavaScript
/// <reference path="swfobject.js" /> /// <reference path="swfobject.js" /> /*! * jQuery TubePlayer Plugin * * version: 1.1.0 (1-Oct-2012) * @requires v1.3.2 or later * * @imports SWFObject - http://code.google.com/p/swfobject/ * - Degrades to flash based player if not HTML5/iframe option * * Aut...
JavaScript
/* * jQuery Nivo Slider v3.2 * http://nivo.dev7studios.com * * Copyright 2012, Dev7studios * Free to use and abuse under the MIT license. * http://www.opensource.org/licenses/mit-license.php */ (function($) { var NivoSlider = function(element, options){ // Defaults are below var ...
JavaScript
{ // a dummy block, so I can collapse all the meta stuff in the editor /**************************************************************************** * jQuery 1.3.x plugin to shorten styled text to fit in a block, appending * an ellipsis ("...", &hellip;, Unicode: 2026) or other text. * (Only supports ltr text fo...
JavaScript
/** * Galleria Classic Theme 2012-08-08 * http://galleria.io * * Licensed under the MIT license * https://raw.github.com/aino/galleria/master/LICENSE * */ (function($) { /*global jQuery, Galleria */ Galleria.addTheme({ name: 'classic', author: 'Galleria', css: 'galleria.classic.css', defaults:...
JavaScript
/** * Galleria v 1.2.9 2013-02-14 * http://galleria.io * * Licensed under the MIT license * https://raw.github.com/aino/galleria/master/LICENSE * */ (function( $ ) { /*global jQuery, navigator, Galleria:true, Image */ // some references var undef, window = this, doc = window.document, $doc = ...
JavaScript
/** * jQuery Montage plugin * http://www.codrops.com/ * * Copyright 2011, Pedro Botelho * Licensed under the MIT license. * http://www.opensource.org/licenses/mit-license.php * * Date: Tue Aug 30 2011 */ (function( window, $, undefined ) { /* * Array.max, Array.min * @John Resig * http://...
JavaScript
/* * jQuery Globalization plugin * http://github.com/nje/jquery-glob */ (function ($) { var localized = { en: {} }; localized["default"] = localized.en; $.extend({ findClosestCulture: function (name) { var match; if (!name) { match = $.culture |...
JavaScript
(function (d) { var nL = "zh-Hant", zlb = "bosanski", nV = "es-US", mV = "es-PR", lV = "es-NI", kV = "es-HN", ylb = "English (Singapore)", jV = "en-SG", iV = "es-SV", xlb = "dddd, d MMMM, yyyy h:mm:ss tt", wlb = "dddd, d MMMM...
JavaScript
/* * jQuery FlexSlider v1.8 * http://www.woothemes.com/flexslider/ * * Copyright 2012 WooThemes * Free to use under the MIT license. * http://www.opensource.org/licenses/mit-license.php * * Contributing Author: Tyler Smith */ ; (function ($) { //FlexSlider: Object Instance $.flexslider = functio...
JavaScript
/** * @author Jason Roy for CompareNetworks Inc. * Thanks to mikejbond for suggested udaptes * * Version 1.1 * Copyright (c) 2009 CompareNetworks Inc. * * Licensed under the MIT license: * http://www.opensource.org/licenses/mit-license.php * */ (function($) { // Private variables var _options = ...
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
/*! Copyright (c) 2011 Piotr Rochala (http://rocha.la) * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. * * Version: 0.6.5 * */ (function($) { jQuery.fn.extend({ slimScroll: function(options) { ...
JavaScript
var ddsmoothmenu = { ///////////////////////// Global Configuration Options: ///////////////////////// //Specify full URL to down and right arrow images (23 is padding-right for top level LIs with drop downs, 6 is for vertical top level items with fly outs): arrowimages: { down: ['downarrowclass', '...
JavaScript
/*! PowerTip - v1.2.0 - 2013-04-03 http://stevenbenner.github.com/jquery-powertip/ Copyright (c) 2013 Steven Benner (http://stevenbenner.com/). Released under MIT license. https://raw.github.com/stevenbenner/jquery-powertip/master/LICENSE.txt */ (function(factory) { if (typeof define === 'function' && define.amd)...
JavaScript
//================================================================================================ //Modules.Layout //dolamthien@gmail.com //================================================================================================ LayoutTemplate = { Layout: { Header: '<RequestParams Type="31" ...
JavaScript
DetailTemplate = { Load: function () { console.log('::Layout load'); } };
JavaScript
MenuTemplate = { Load: function (data) { console.log('::Layout load', data); } };
JavaScript
ProductTemplate = { Load: function () { console.log('::Layout load'); } };
JavaScript
/* This file is part of JonDesign's SmoothGallery v2.0. JonDesign's SmoothGallery is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any...
JavaScript
/*================================================== $Id: tabber.js,v 1.9 2006/04/27 20:51:51 pat Exp $ tabber.js by Patrick Fitzgerald pat@barelyfitz.com Documentation can be found at the following URL: http://www.barelyfitz.com/projects/tabber/ License (http://www.opensource.org/licenses/mit-licens...
JavaScript
function wtslog(uid,dbn,ssl,page_name,invisible,text_counter){ if (! page_name || page_name == '#'){ page_name = ''; } if (! invisible || invisible == '#'){ invisible = ''; } if (! text_counter || text_counter == '#'){ text_counter = 'no'; } if (ssl == 'https'){ var p...
JavaScript
var mydate=new Date() var year=mydate.getYear() if (year < 1000) year+=1900 var day=mydate.getDay() var month=mydate.getMonth() var daym=mydate.getDate() if (daym<10) daym="0"+daym var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday") var montharray=new Array("January"...
JavaScript
/*================================================== $Id: tabber.js,v 1.9 2006/04/27 20:51:51 pat Exp $ tabber.js by Patrick Fitzgerald pat@barelyfitz.com Documentation can be found at the following URL: http://www.barelyfitz.com/projects/tabber/ License (http://www.opensource.org/licenses/mit-licens...
JavaScript
/* This file is part of JonDesign's SmoothGallery v2.0. JonDesign's SmoothGallery is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any...
JavaScript
/*================================================== $Id: tabber.js,v 1.9 2006/04/27 20:51:51 pat Exp $ tabber.js by Patrick Fitzgerald pat@barelyfitz.com Documentation can be found at the following URL: http://www.barelyfitz.com/projects/tabber/ License (http://www.opensource.org/licenses/mit-licens...
JavaScript
function wtslog(uid,dbn,ssl,page_name,invisible,text_counter){ if (! page_name || page_name == '#'){ page_name = ''; } if (! invisible || invisible == '#'){ invisible = ''; } if (! text_counter || text_counter == '#'){ text_counter = 'no'; } if (ssl == 'https'){ var p...
JavaScript
var mydate=new Date() var year=mydate.getYear() if (year < 1000) year+=1900 var day=mydate.getDay() var month=mydate.getMonth() var daym=mydate.getDate() if (daym<10) daym="0"+daym var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday") var montharray=new Array("January"...
JavaScript
if (typeof Modules == "undefined") Modules = {}; Modules.Resource = { Container: '', CatID: '', ID: '', ResourceViewPage: '#content-page', ResourceViewID: '#resource-id', ResourceViewCat: '#resource-cat', ResourceViewHome: '#resource-home', ResourceViewList: '.resource-list...
JavaScript
if (typeof Modules == "undefined") Modules = {}; Modules.Home = { Init: function () { var thisObj = this; var rID = $.GetURL('rID'); var rType = $.GetURL('rType'); if (rID == null || rID == '') { //Show Home Navigation Default rID = '9ABE5...
JavaScript
if (typeof Modules == "undefined") Modules = {}; if (typeof Modules.Core == "undefined") Modules.Core = {}; //------------------------------------------------------------------------------ //Desctition: default variable //------------------------------------------------------------------------------ Modules.Core....
JavaScript
if (typeof Modules == "undefined") Modules = {}; //------------------------------------------------------------------------------ //Create by: tantajnguyen@gmail.com //Create date: 2014/03/25 //Desctition: load layout //------------------------------------------------------------------------------ Modules.Layout...
JavaScript
function CTabs(pOptions) { var self = this; this.container = ""; this.options = { active: null, collapsible: false, event: "click", heightStyle: "content", hide: null, show: null, // callbacks activate: null, beforeActivate: null, ...
JavaScript
function CXml(pTagName, pPairValues) { this.tagName = pTagName; this.pairValues = pPairValues; this.init = function () { } this.getXml = function () { var self = this; var node = '<' + self.tagName + ' [ATTRIBUTE]/>'; var sAttribute = ''; try { ...
JavaScript
//=============================================================================================== // Mod: Core // Author: thien.l.do // Ref: http://splitterjsobj.sourceforge.net/ // Use: jquery.splitter.js // Edit: // Create: 2011-06-22 // Modify: yyyy-MM-dd //==============...
JavaScript
/* Required: 1. jquery.slimScroll.js */ function CScroll(opts) { var self = this; this.container = ""; this.options = { wheelStep: 20, width: 'auto', height: '250px', size: '7px', color: '#999', position: 'right', distance: '1px', ...
JavaScript
 $.CFormat = { Culture: function () { return $.getCookie("iCMS:Culture") || "en-US"; }, ParseFloat: function (value, culture) { var thisObj = this; culture = culture || "en-US"; var ret = ""; if (value != "") { ret = $.parseFloat(value, "n", cul...
JavaScript
function CDialog(options) { var self = this; this._dialog = {}; this._count = 0; this._container = ""; this._options = { autoOpen: true, buttonFocus: 0, buttons: "", closeOnEscape: false, closeText: 'close', closeHide: false, frame...
JavaScript
/********************************************************************************************* ** Jquery extend *********************************************************************************************/ $.HtmlEncode = function (text) { var ret = ""; if (typeof text == "string") { ret = text ...
JavaScript
/// <reference path="swfobject.js" /> /// <reference path="swfobject.js" /> /*! * jQuery TubePlayer Plugin * * version: 1.1.0 (1-Oct-2012) * @requires v1.3.2 or later * * @imports SWFObject - http://code.google.com/p/swfobject/ * - Degrades to flash based player if not HTML5/iframe option * * Aut...
JavaScript
/* * jQuery Nivo Slider v3.2 * http://nivo.dev7studios.com * * Copyright 2012, Dev7studios * Free to use and abuse under the MIT license. * http://www.opensource.org/licenses/mit-license.php */ (function($) { var NivoSlider = function(element, options){ // Defaults are below var ...
JavaScript
{ // a dummy block, so I can collapse all the meta stuff in the editor /**************************************************************************** * jQuery 1.3.x plugin to shorten styled text to fit in a block, appending * an ellipsis ("...", &hellip;, Unicode: 2026) or other text. * (Only supports ltr text fo...
JavaScript
/** * Galleria Classic Theme 2012-08-08 * http://galleria.io * * Licensed under the MIT license * https://raw.github.com/aino/galleria/master/LICENSE * */ (function($) { /*global jQuery, Galleria */ Galleria.addTheme({ name: 'classic', author: 'Galleria', css: 'galleria.classic.css', defaults:...
JavaScript
/** * Galleria v 1.2.9 2013-02-14 * http://galleria.io * * Licensed under the MIT license * https://raw.github.com/aino/galleria/master/LICENSE * */ (function( $ ) { /*global jQuery, navigator, Galleria:true, Image */ // some references var undef, window = this, doc = window.document, $doc = ...
JavaScript
/** * jQuery Montage plugin * http://www.codrops.com/ * * Copyright 2011, Pedro Botelho * Licensed under the MIT license. * http://www.opensource.org/licenses/mit-license.php * * Date: Tue Aug 30 2011 */ (function( window, $, undefined ) { /* * Array.max, Array.min * @John Resig * http://...
JavaScript
/* * jQuery Globalization plugin * http://github.com/nje/jquery-glob */ (function ($) { var localized = { en: {} }; localized["default"] = localized.en; $.extend({ findClosestCulture: function (name) { var match; if (!name) { match = $.culture |...
JavaScript
(function (d) { var nL = "zh-Hant", zlb = "bosanski", nV = "es-US", mV = "es-PR", lV = "es-NI", kV = "es-HN", ylb = "English (Singapore)", jV = "en-SG", iV = "es-SV", xlb = "dddd, d MMMM, yyyy h:mm:ss tt", wlb = "dddd, d MMMM...
JavaScript
/** * @author Jason Roy for CompareNetworks Inc. * Thanks to mikejbond for suggested udaptes * * Version 1.1 * Copyright (c) 2009 CompareNetworks Inc. * * Licensed under the MIT license: * http://www.opensource.org/licenses/mit-license.php * */ (function($) { // Private variables var _options = ...
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
/*! Copyright (c) 2011 Piotr Rochala (http://rocha.la) * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. * * Version: 0.6.5 * */ (function($) { jQuery.fn.extend({ slimScroll: function(options) { ...
JavaScript
var ddsmoothmenu = { ///////////////////////// Global Configuration Options: ///////////////////////// //Specify full URL to down and right arrow images (23 is padding-right for top level LIs with drop downs, 6 is for vertical top level items with fly outs): arrowimages: { down: ['downarrowclass', '...
JavaScript
/*! PowerTip - v1.2.0 - 2013-04-03 http://stevenbenner.github.com/jquery-powertip/ Copyright (c) 2013 Steven Benner (http://stevenbenner.com/). Released under MIT license. https://raw.github.com/stevenbenner/jquery-powertip/master/LICENSE.txt */ (function(factory) { if (typeof define === 'function' && define.amd)...
JavaScript
if (typeof Modules == "undefined") Modules = {}; Modules.Products = { CatID: '', ID: '', ViewTemplate: null, TemplatePath: '../../uploads/template/product/', Init: function () { var _this = this; _this.ID = $.GetURL('ID'); _this.CatID = $.GetURL('CatID'); ...
JavaScript
ProductTemplate = { GetRootPath: function () { //-------------------------------------------------------- var rootPath = ''; var loc = window.location.host; if (loc == 'tuantrang' || loc == 'localhost') { rootPath = 'http://thongthuongdieselengine.com/'; ...
JavaScript
if (typeof Modules == "undefined") Modules = {}; Modules.Home = { Init: function () { var thisObj = this; var rID = $.GetURL('rID'); var rType = $.GetURL('rType'); if (rID == null || rID == '') { //Show Home Navigation Default rID = '9ABE5...
JavaScript
if (typeof Modules == "undefined") Modules = {}; if (typeof Modules.Core == "undefined") Modules.Core = {}; Modules.Core.Default = { Image: function () { return "../../Images/no_image.jpg"; }, TemplatePath: '../../uploads/template/', TemplateViewDefault: null, TemplateView: functi...
JavaScript
/* This file is part of JonDesign's SmoothGallery v2.0. JonDesign's SmoothGallery is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any...
JavaScript
/*================================================== $Id: tabber.js,v 1.9 2006/04/27 20:51:51 pat Exp $ tabber.js by Patrick Fitzgerald pat@barelyfitz.com Documentation can be found at the following URL: http://www.barelyfitz.com/projects/tabber/ License (http://www.opensource.org/licenses/mit-licens...
JavaScript
function wtslog(uid,dbn,ssl,page_name,invisible,text_counter){ if (! page_name || page_name == '#'){ page_name = ''; } if (! invisible || invisible == '#'){ invisible = ''; } if (! text_counter || text_counter == '#'){ text_counter = 'no'; } if (ssl == 'https'){ var p...
JavaScript
var mydate=new Date() var year=mydate.getYear() if (year < 1000) year+=1900 var day=mydate.getDay() var month=mydate.getMonth() var daym=mydate.getDate() if (daym<10) daym="0"+daym var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday") var montharray=new Array("January"...
JavaScript
/*================================================== $Id: tabber.js,v 1.9 2006/04/27 20:51:51 pat Exp $ tabber.js by Patrick Fitzgerald pat@barelyfitz.com Documentation can be found at the following URL: http://www.barelyfitz.com/projects/tabber/ License (http://www.opensource.org/licenses/mit-licens...
JavaScript
var mydate=new Date() var year=mydate.getYear() if (year < 1000) year+=1900 var day=mydate.getDay() var month=mydate.getMonth() var daym=mydate.getDate() if (daym<10) daym="0"+daym var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday") var montharray=new Array("January"...
JavaScript
/* This file is part of JonDesign's SmoothGallery v2.0. JonDesign's SmoothGallery is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any...
JavaScript
/*================================================== $Id: tabber.js,v 1.9 2006/04/27 20:51:51 pat Exp $ tabber.js by Patrick Fitzgerald pat@barelyfitz.com Documentation can be found at the following URL: http://www.barelyfitz.com/projects/tabber/ License (http://www.opensource.org/licenses/mit-licens...
JavaScript
function wtslog(uid,dbn,ssl,page_name,invisible,text_counter){ if (! page_name || page_name == '#'){ page_name = ''; } if (! invisible || invisible == '#'){ invisible = ''; } if (! text_counter || text_counter == '#'){ text_counter = 'no'; } if (ssl == 'https'){ var p...
JavaScript
var mydate=new Date() var year=mydate.getYear() if (year < 1000) year+=1900 var day=mydate.getDay() var month=mydate.getMonth() var daym=mydate.getDate() if (daym<10) daym="0"+daym var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday") var montharray=new Array("January"...
JavaScript
FooterView = { Load: function () { } };
JavaScript
FooterView = { Load: function (data) { $('#footer_note').html(data[0].Detail); } };
JavaScript

JavaScript

JavaScript
ProductDetail = { Load: function (data) { if (data) { var _this = this; console.log('::ProductTemplate::02', data); _this.ShowInfo(data[1]); _this.ShowImage(data[2], data[1]); _this.ShowVideo(data[3]); _this.ShowArticle(data[4]...
JavaScript
ProductTemplate = { GetRootPath: function () { //-------------------------------------------------------- var rootPath = ''; var loc = window.location.host; if (loc == 'tuantrang' || loc == 'localhost') { rootPath = 'http://thongthuongdieselengine.com/'; ...
JavaScript
ProductDetail = { Load: function (data) { if (data) { var _this = this; $("#data-tabs").tabs(); _this.ShowInfo(data[1]); _this.ShowImage(data[2], data[1]); _this.ShowVideo(data[3]); _this.ShowArticle(data[4]); } ...
JavaScript
ProductList = { NoImage: '../../images/no_image.jpg', LoadImage: '../../images/loader.gif', Load: function (list, detail) { var i, _this = this; if (list) { var arr = []; var $list = $('.product-list'), $detail = $list.find('ul.list-item li')....
JavaScript
// https://groups.google.com/forum/#!msg/knockoutjs/dtXftC1Ncgg/CFGJbaIBs70J // https://gist.github.com/889400 // knockout-jquery-ui-widget.js // Copyright (c) 2011, Planapple, Inc. // License: MIT (http://www.opensource.org/licenses/mit-license.php) // // Knockout binding for jQuery UI widgets // // Example...
JavaScript
var Portfolio = (function () { function Portfolio(viewModel) { this.items = ko.observableArray([]); this.newSymbol = ko.observable(""); this.canAddNewSymbol = ko.observable(false); var self = this; this.viewModel = viewModel; this.newSymbol.subscribe(function (...
JavaScript
var ViewModel = (function () { function ViewModel() { this.companies = []; this.updating = ko.observable(0); this.minDate = ko.observable(null); this.chartSeries = ko.observable([]); this.chartStyles = ko.observable([]); this.chartHoverStyles = ko.observable([]...
JavaScript