Server IP : 164.52.202.56 / Your IP : 216.73.216.204 Web Server : Apache System : Linux e2e-70-56.ssdcloudindia.net 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Tue Nov 5 04:50:16 EST 2024 x86_64 User : rubyaromatics ( 1052) PHP Version : 7.2.34 Directory (0755) : /home/rubyaromatics/public_html/images/../controller/assets/js/ |
[ Home ] | [ Terminal ] | [ Upload File ] |
---|
//Cool ios7 switch - Beta version //Done using pure Javascript var Switch = require('ios7-switch') , checkbox = document.querySelector('.ios') , mySwitch = new Switch(checkbox); mySwitch.toggle(); mySwitch.el.addEventListener('click', function(e){ e.preventDefault(); mySwitch.toggle(); }, false); //creating multiple instances var Switch2 = require('ios7-switch') , checkbox = document.querySelector('.iosblue') , mySwitch2 = new Switch2(checkbox); mySwitch2.el.addEventListener('click', function(e){ e.preventDefault(); mySwitch2.toggle(); }, false); $(document).ready(function(){ //Dropdown menu - select2 plug-in $("#source").select2(); //Multiselect - Select2 plug-in $("#multi").val(["Jim","Lucy"]).select2(); //Date Pickers $('.input-append.date').datepicker({ autoclose: true, todayHighlight: true }); $('#dp5').datepicker(); $('#sandbox-advance').datepicker({ format: "dd/mm/yyyy", startView: 1, daysOfWeekDisabled: "3,4", autoclose: true, todayHighlight: true }); //Time pickers $('.timepicker-default').timepicker(); $('.timepicker-24').timepicker({ minuteStep: 1, showSeconds: true, showMeridian: false }); //Color pickers $('.my-colorpicker-control').colorpicker() //Input mask - Input helper $(function($){ $("#date").mask("99/99/9999"); $("#phone").mask("(999) 999-9999"); $("#tin").mask("99-9999999"); $("#ssn").mask("999-99-9999"); }); //Autonumeric plug-in - automatic addition of dollar signs,etc controlled by tag attributes $('.auto').autoNumeric('init'); //HTML5 editor $('#text-editor').wysihtml5(); //Drag n Drop up-loader $("div#myId").dropzone({ url: "/file/post" }); //Single instance of tag inputs - can be initiated with simply using data-role="tagsinput" attribute in any input field $('#source-tags').tagsinput({ typeahead: { source: ['Amsterdam', 'Washington', 'Sydney', 'Beijing', 'Cairo'] } }); });