This file contains 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> | |
<html lang="en"> | |
<head> | |
<!-- head --> | |
<meta charset="utf-8"> | |
<meta name="msapplication-tap-highlight" content="no" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<meta name="description" content="Animate carousel"> | |
<meta name="author" content="David Deutsch"> |
This file contains 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() { | |
//str = 'My Name is %NAME% and my age is %AGE%.' | |
//{"%NAME%":"Mike","%AGE%":"26","%EVENT%":"20"} | |
function format(str, replacements) { | |
var _replacements = {}; | |
for (var k in replacements) { | |
_replacements["%" + k + "%"] = replacements[k]; | |
} | |
return str.replace(/%\w+%/g, function(all) { | |
return _replacements[all] || all; |
This file contains 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
$('.unreal-form-call').on('click', function () { | |
var $this = $(this), | |
period = $this.data('period') ? $this.data('period') : null, | |
hiddenTypes = ['Unreal','Epic'], | |
type = $this.data('type'); | |
//console.log("1122312"); | |
// соответствие пак->период: Селект периодов представляет собой значения одномерного массива, | |
// где 0: 3 месяца, 1 - 6 месяцев и т.д. | |
// Когда мы отправляем значение пака, то в periods передаем индекс массива, который соответствует данному периоду |
This file contains 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
<div id="order-unreal-form_block" class="order-unreal-form lity-hide"> | |
<h2 class="left margin-bottom-small">Order QA testing</h2> | |
<button class="lity-close show" type="button" aria-label="Close (Press escape to close)" data-lity-close="">×</button> | |
<form action="" id="orderUnrealForm"> | |
<div class="select-pack"> | |
<div class="section group"> | |
<div class="col left-col"> | |
<div class="input-wrapper select-wrapper"> | |
<select id="packages" name="package"> | |
<option value="Basic" id="basic-pack" selected>Basic</option> |