This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var carMake = [{ | |
| "make": "Smart", | |
| "id": '200038885' | |
| }, { | |
| "make": "Bomb", | |
| "id": '200038885' | |
| }, { | |
| "make": "Volkswagen", | |
| "id": '200000238' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| getObjectLength = function (obj) { | |
| var size = 0, key; | |
| for (key in obj) { | |
| if (obj.hasOwnProperty(key)) size++; | |
| } | |
| return size; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| self.$inputFilter.on('keyup', function (event) { | |
| text = $(this).val(); | |
| event.stopImmediatePropagation(); | |
| // data | |
| return false; | |
| }).click(function () { | |
| return false; | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Overwrite the default to keep the scrollbar always visible */ | |
| .showScroll.lion::-webkit-scrollbar { | |
| -webkit-appearance: none; | |
| width: 7px; | |
| } | |
| .showScroll.lion::-webkit-scrollbar-thumb { | |
| border-radius: 4px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(this).css('marginBottom').replace(/[^-\d\.]/g, ''); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var isMac = navigator.platform.toUpperCase().indexOf('MAC')>=0; | |
| var isMacLike = navigator.platform.match(/(Mac|iPhone|iPod|iPad)/i)?true:false; | |
| var isIOS = navigator.platform.match(/(iPhone|iPod|iPad)/i)?true:false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var ele = [Your Form Element]; | |
| if(ele.addEventListener){ | |
| ele.addEventListener("submit", callback, false); //Modern browsers | |
| }else if(ele.attachEvent){ | |
| ele.attachEvent('onsubmit', callback); //Old IE | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| serialize: function serialize(form) | |
| { | |
| if (!form || form.nodeName !== "FORM") { | |
| return; | |
| } | |
| var i, j, | |
| obj = {}; | |
| for (i = form.elements.length - 1; i >= 0; i = i - 1) { | |
| if (form.elements[i].name === "") { | |
| continue; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var getRequest = function (dataToSend,url,handler) { | |
| if(!dataToSend){ | |
| dataToSend = ''; | |
| } | |
| $.ajax({ | |
| type: 'GET', | |
| url: url, | |
| data:dataToSend, | |
| success: function(data) { | |
| if(typeof handler == 'function'){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| controlList = { | |
| 'map_type_control': 'margin-top: 5px; margin-right: 5px; margin-bottom: 5px; margin-left: 5px; z-index: 11; position: absolute; cursor: pointer; right: 0px; top: 0px; ', | |
| 'pan_control': 'cursor: url(https://maps-api-ssl.google.com/intl/en_us/mapfiles/openhand_8_8.cur), default; width: 78px; height: 78px; position: absolute; left: 0px; top: 0px; ', | |
| 'zoom_control': 'position: absolute; left: 27px; top: 128px; ', | |
| 'streetmap_control': 'width: 32px; height: 38px; overflow-x: hidden; overflow-y: hidden; position: absolute; left: 0px; top: 0px; ', | |
| }; | |
| function labelControls() { | |
| $.each(controlList, function(id, attr) { | |
| $('div[style^="' + attr + '"]').attr('class',id); |