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
class Storage { | |
static get(key) { | |
let value = localStorage.getItem(key); | |
return value === null ? null : JSON.parse(value); | |
} | |
static set(key,value) { | |
return localStorage.setItem(key,JSON.stringify(value)); | |
} |
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 transliterate($st) { | |
$st = strtr($st, | |
"абвгдежзийклмнопрстуфыэАБВГДЕЖЗИЙКЛМНОПРСТУФЫЭ", | |
"abvgdegziyklmnoprstufieABVGDEGZIYKLMNOPRSTUFIE" | |
); | |
$st = strtr($st, array( | |
'ё'=>"yo", 'х'=>"h", 'ц'=>"ts", 'ч'=>"ch", 'ш'=>"sh", | |
'щ'=>"shch", 'ъ'=>'', 'ь'=>'', 'ю'=>"yu", 'я'=>"ya", | |
'Ё'=>"Yo", 'Х'=>"H", 'Ц'=>"Ts", 'Ч'=>"Ch", 'Ш'=>"Sh", |
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
[{"id":"113","parent_id":null,"name":"Россия","areas":[{"id":"1620","parent_id":"113","name":"Республика Марий Эл","areas":[{"id":"4228","parent_id":"1620","name":"Виловатово","areas":[]},{"id":"1621","parent_id":"1620","name":"Волжск","areas":[]},{"id":"1622","parent_id":"1620","name":"Звенигово","areas":[]},{"id":"4229","parent_id":"1620","name":"Знаменский","areas":[]},{"id":"61","parent_id":"1620","name":"Йошкар-Ола","areas":[]},{"id":"4230","parent_id":"1620","name":"Кельмаксола","areas":[]},{"id":"4231","parent_id":"1620","name":"Килемары","areas":[]},{"id":"1623","parent_id":"1620","name":"Козьмодемьянск","areas":[]},{"id":"4232","parent_id":"1620","name":"Красногорский (Республика Марий Эл)","areas":[]},{"id":"4233","parent_id":"1620","name":"Краснооктябрьский","areas":[]},{"id":"4234","parent_id":"1620","name":"Куженер","areas":[]},{"id":"4235","parent_id":"1620","name":"Мари-Турек","areas":[]},{"id":"4236","parent_id":"1620","name":"Медведево","areas":[]},{"id":"3667","parent_id":"1620","name":"Морк |
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
[ | |
{ | |
"name": "Украина", | |
"regions": [ | |
{ | |
"name": "Автономная Республика Крым", | |
"cities": [ | |
{ | |
"name": "Алупка", | |
"lat": "44.4197222", |
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
<code_scheme name="My JS Code Style" version="173"> | |
<JSCodeStyleSettings version="0"> | |
<option name="SPACE_WITHIN_ARRAY_INITIALIZER_BRACKETS" value="true" /> | |
<option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" /> | |
<option name="SPACES_WITHIN_IMPORTS" value="true" /> | |
<option name="SPACES_WITHIN_INTERPOLATION_EXPRESSIONS" value="true" /> | |
<option name="FUNCTION_EXPRESSION_BRACE_STYLE" value="2" /> | |
</JSCodeStyleSettings> | |
<PHPCodeStyleSettings> | |
<option name="INDENT_CODE_IN_PHP_TAGS" value="true" /> |
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
/** | |
* Загрузка JS файлов | |
* @param url - файл | |
* @param callback - после загрузки файла | |
* @private | |
*/ | |
LoadJsFileGRT = function (url, callback) { | |
var script = document.createElement("script") | |
script.type = "text/javascript"; | |
if (typeof callback === '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
(function(){ | |
var $ = jQuery ; | |
var Domen = 'https://fotosmart.artos.pp.ua' | |
// Интервал между проверками новых сообщений | |
var tInterval = 10000 ; | |
var mp3 = { | |
// сигнал для раздела - Предлагаю работу |
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
<!DOCTYPE html><title></title> |
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
/** | |
PLG - vmshipment nova_pochta OrderEdit | |
/vmshipment/nova_pochta/nova_pochta/assets/css/novaPoshtaOrderEdit.css | |
*/ | |
#tablePlg{ | |
float: left; | |
width: 100%; | |
} | |
#tablePlg div{ |
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
public function onAjaxGlavpunkt(){ | |
$app = \JFactory::getApplication() ; | |
$task = $app->input->get('task' , false ); | |
if (!method_exists( $this,$task ) ){ | |
throw new Exception(''); | |
} | |
echo'<pre>';print_r( method_exists( $this,$task ) );echo'</pre>'.__FILE__.' '.__LINE__; | |