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
| /** | |
| * Deep diff between two object, using lodash | |
| * @param {Object} object Object compared | |
| * @param {Object} base Object to compare with | |
| * @return {Object} Return a new object who represent the diff | |
| */ | |
| function difference(object, base) { | |
| function changes(object, base) { | |
| return _.transform(object, function(result, value, key) { | |
| if (!_.isEqual(value, base[key])) { |
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
| dialog | |
| | Вот какое модальное окно | |
| button#close Close | |
| button#show ClickMe |
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 base64_decode( data ) { // Decodes data encoded with MIME base64 | |
| // | |
| // + original by: Tyler Akins (http://rumkin.com) | |
| var b64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; | |
| var o1, o2, o3, h1, h2, h3, h4, bits, i=0, enc=''; | |
| do { // unpack four hexets into three octets using index points in b64 | |
| h1 = b64.indexOf(data.charAt(i++)); |
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
| <? | |
| foreach ($events as $ev) { | |
| $rpt = CCalendarEvent::ParseRRULE($ev['RRULE']); | |
| $dt_from = strtotime($ev['DT_FROM']); | |
| $dt_to = strtotime($ev['DT_TO']); | |
| $tmpEvent = $ev; | |
| $tmpEvent['icon'] = ''; | |
| if (isset($rpt['FREQ'])) { | |
| $tmpEvent['NAME'] = '<i class="fa fa-refresh" title="Регулярное мероприятие"></i> ' . $tmpEvent['NAME']; | |
| switch ($rpt['FREQ']) { |