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
| const Prom = (function () { | |
| function toArray(arr){ | |
| return ( | |
| (Array.isArray(arr) && arr) | |
| || (!Array.isArray(arr) && arr.length && [].slice.call(arr)) | |
| || (typeof arr === 'string' && arr.split('')) | |
| || (typeof arr === 'object' && []) | |
| ) | |
| } |
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
| Validation.add( | |
| 'validate_unique_email', | |
| 'This email is already in use! Please log in in order to proceed', | |
| function(value){ | |
| var url = validationUniqueEmail + '?email=' + encodeURIComponent(value); | |
| var ok = false; | |
| new Ajax.Request(url, { | |
| method: 'get', |
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
| _disableEnableAll: function(element, isDisabled) { | |
| var descendants = element.descendants(); | |
| for (var k in descendants) { | |
| if(k !== 'toJSON') { | |
| descendants[k].disabled = isDisabled; | |
| } | |
| } | |
| element.disabled = isDisabled; | |
| }, |
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
| privateMessages: [{ | |
| author: "Sly" | |
| created_at: { | |
| date: "2014-05-14 23:15:07" | |
| timezone: "Europe/Helsinki" | |
| timezone_type: 3 | |
| } | |
| message: "asdadasdasdad" | |
| recipient: "Nagibator2000" | |
| }] |
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
| privateMessages: { | |
| from: Array[{ | |
| author: "Sly" | |
| created_at: { | |
| date: "2014-05-14 23:15:07" | |
| timezone: "Europe/Helsinki" | |
| timezone_type: 3 | |
| } | |
| message: "asdadasdasdad" | |
| recipient: "Nagibator2000" |
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
| {event: "@message", message: "{"message":{"author":"Sly","message":"asdsd"}}"} before | |
| {event: "@message", message: "{"author":"Sly","message":"asdsd"}"} after | |
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
| masteries: [{ | |
| bonus: { | |
| dmgFrom: 1 | |
| }, | |
| image: null, | |
| levelMult: 2, | |
| name: "Рукопашный бой" | |
| }, { | |
| bonus: { | |
| dmgFrom: 1 |
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
| function($) { | |
| /** | |
| * Show preloader under element | |
| * | |
| * @param {string} height of preloader block | |
| * @param {string} width of preloader block | |
| * @return {void} | |
| */ | |
| $.fn.showPreloader = function(width, height) { | |
| width = width || '100%'; |
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
| <?xml version="1.0"?> | |
| <config> | |
| <modules> | |
| <Bombardier_TopMenu> | |
| <version>0.0.1</version> | |
| </Bombardier_TopMenu> | |
| </modules> | |
| <global> | |
| <blocks> | |
| <page> |
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
| <block type="page/html" name="root" output="toHtml" template="page/3columns.phtml"> | |
| <block type="page/html_head" name="head" as="head"> | |
| </block> | |
| <block type="page/html_header" name="header" as="header"> | |
| // header block children | |
| </block> | |
| // some blocks |
NewerOlder