Skip to content

Commit bea5657

Browse files
authored
Merge branch 'moscowpython:master' into master
2 parents 6367a44 + 7c4dd0c commit bea5657

12 files changed

Lines changed: 327 additions & 311 deletions

File tree

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
document.addEventListener("DOMContentLoaded", function() {
2+
var script = document.getElementById('f5be3bcced9b8d99a4cc095aadcc152acc1c0aa02');
3+
4+
var par = script.parentNode;
5+
script.parentNode.style.overflow = 'hidden';
6+
7+
var iframe = document.createElement('iframe');
8+
iframe.src = 'https://learnpythonru.getcourse.ru/pl/lite/widget/widget'
9+
+ "?" + window.location.search.substring(1)
10+
+ "&id=1151238"
11+
+ "&ref=" + encodeURIComponent(document.referrer)
12+
+ "&loc=" + encodeURIComponent(document.location.href);
13+
iframe.style.width = '100%';
14+
iframe.style.height = '0px';
15+
iframe.style.border = 'none';
16+
iframe.style.overflow = 'hidden';
17+
iframe.setAttribute('allowfullscreen', 'allowfullscreen');
18+
iframe.className = '511';
19+
iframe.id = 'c6b45c08ef83f13b64a41560165b2147de61cf2a' + '_' + iframe.className;
20+
// name можно получить изнутри iframe
21+
iframe.name = iframe.className;
22+
23+
var iframeId = iframe.id;
24+
25+
var gcEmbedOnMessage = function(e) {
26+
var insertedIframe = document.getElementById(iframeId);
27+
if (!insertedIframe) {
28+
return;
29+
}
30+
31+
if (e.data.uniqName == 'f5be3bcced9b8d99a4cc095aadcc152acc1c0aa0') {
32+
if (e.data.height) {
33+
if (e.data.iframeName) {
34+
if (e.data.iframeName == iframe.name) {
35+
par.style.height = ( e.data.height ) + "px";
36+
insertedIframe.style.height = (e.data.height) + "px";
37+
}
38+
} else {
39+
par.style.height = ( e.data.height ) + "px";
40+
insertedIframe.style.height = (e.data.height) + "px";
41+
}
42+
}
43+
}
44+
};
45+
46+
if (window.addEventListener) {
47+
window.addEventListener("message", gcEmbedOnMessage, false);
48+
} else if (window.attachEvent) {
49+
window.attachEvent('onmessage', gcEmbedOnMessage)
50+
} else {
51+
window['onmessage'] = gcEmbedOnMessage
52+
}
53+
54+
script.parentNode.insertBefore(iframe, script);
55+
par.removeChild( script )
56+
});
57+
58+
var getLocation = function(href) {
59+
var l = document.createElement("a");
60+
l.href = href;
61+
return l;
62+
};
63+
64+
var currentScript = document.currentScript || (function() {
65+
var scripts = document.getElementsByTagName('script');
66+
return scripts[scripts.length - 1];
67+
})();
68+
69+
var domain = ( (getLocation( currentScript.src )).hostname );
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
document.addEventListener("DOMContentLoaded", function() {
2+
var script = document.getElementById('f5be3bcced9b8d99a4cc095aadcc152acc1c0aa0');
3+
4+
var par = script.parentNode;
5+
script.parentNode.style.overflow = 'hidden';
6+
7+
var iframe = document.createElement('iframe');
8+
iframe.src = 'https://learnpythonru.getcourse.ru/pl/lite/widget/widget'
9+
+ "?" + window.location.search.substring(1)
10+
+ "&id=1151238"
11+
+ "&ref=" + encodeURIComponent(document.referrer)
12+
+ "&loc=" + encodeURIComponent(document.location.href);
13+
iframe.style.width = '100%';
14+
iframe.style.height = '0px';
15+
iframe.style.border = 'none';
16+
iframe.style.overflow = 'hidden';
17+
iframe.setAttribute('allowfullscreen', 'allowfullscreen');
18+
iframe.className = '51';
19+
iframe.id = 'c6b45c08ef83f13b64a41560165b2147de61cf2a' + '_' + iframe.className;
20+
// name можно получить изнутри iframe
21+
iframe.name = iframe.className;
22+
23+
var iframeId = iframe.id;
24+
25+
var gcEmbedOnMessage = function(e) {
26+
var insertedIframe = document.getElementById(iframeId);
27+
if (!insertedIframe) {
28+
return;
29+
}
30+
31+
if (e.data.uniqName == 'f5be3bcced9b8d99a4cc095aadcc152acc1c0aa0') {
32+
if (e.data.height) {
33+
if (e.data.iframeName) {
34+
if (e.data.iframeName == iframe.name) {
35+
par.style.height = ( e.data.height ) + "px";
36+
insertedIframe.style.height = (e.data.height) + "px";
37+
}
38+
} else {
39+
par.style.height = ( e.data.height ) + "px";
40+
insertedIframe.style.height = (e.data.height) + "px";
41+
}
42+
}
43+
}
44+
};
45+
46+
if (window.addEventListener) {
47+
window.addEventListener("message", gcEmbedOnMessage, false);
48+
} else if (window.attachEvent) {
49+
window.attachEvent('onmessage', gcEmbedOnMessage)
50+
} else {
51+
window['onmessage'] = gcEmbedOnMessage
52+
}
53+
54+
script.parentNode.insertBefore(iframe, script);
55+
par.removeChild( script )
56+
});
57+
58+
var getLocation = function(href) {
59+
var l = document.createElement("a");
60+
l.href = href;
61+
return l;
62+
};
63+
64+
var currentScript = document.currentScript || (function() {
65+
var scripts = document.getElementsByTagName('script');
66+
return scripts[scripts.length - 1];
67+
})();
68+
69+
var domain = ( (getLocation( currentScript.src )).hostname );
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
console.log('in file')
2+
3+
document.addEventListener("DOMContentLoaded", function() {
4+
var script = document.getElementById('3e6321862d90cf3a72c6198927067b35e82b0b822');
5+
// var script = document.currentScript;
6+
var par = script.parentNode;
7+
script.parentNode.style.overflow = 'hidden';
8+
9+
var iframe = document.createElement('iframe');
10+
iframe.src = 'https://learnpythonru.getcourse.ru/pl/lite/widget/widget'
11+
+ "?" + window.location.search.substring(1)
12+
+ "&id=1139675"
13+
+ "&ref=" + encodeURIComponent(document.referrer)
14+
+ "&loc=" + encodeURIComponent(document.location.href);
15+
iframe.style.width = '100%';
16+
iframe.style.height = '0px';
17+
iframe.style.border = 'none';
18+
iframe.style.overflow = 'hidden';
19+
iframe.setAttribute('allowfullscreen', 'allowfullscreen');
20+
iframe.className = '941';
21+
iframe.id = 'cc9d55a8a649fc463bf0a580d1c0567f6542b153' + '_' + iframe.className;
22+
// name можно получить изнутри iframe
23+
iframe.name = iframe.className;
24+
25+
var iframeId = iframe.id;
26+
27+
var gcEmbedOnMessage = function(e) {
28+
var insertedIframe = document.getElementById(iframeId);
29+
if (!insertedIframe) {
30+
return;
31+
}
32+
33+
if (e.data.uniqName == '3e6321862d90cf3a72c6198927067b35e82b0b82') {
34+
if (e.data.height) {
35+
if (e.data.iframeName) {
36+
if (e.data.iframeName == iframe.name) {
37+
par.style.height = ( e.data.height ) + "px";
38+
insertedIframe.style.height = (e.data.height) + "px";
39+
}
40+
} else {
41+
par.style.height = ( e.data.height ) + "px";
42+
insertedIframe.style.height = (e.data.height) + "px";
43+
}
44+
}
45+
}
46+
};
47+
48+
if (window.addEventListener) {
49+
window.addEventListener("message", gcEmbedOnMessage, false);
50+
} else if (window.attachEvent) {
51+
window.attachEvent('onmessage', gcEmbedOnMessage)
52+
} else {
53+
window['onmessage'] = gcEmbedOnMessage
54+
}
55+
56+
script.parentNode.insertBefore(iframe, script);
57+
par.removeChild( script )
58+
});
59+
60+
var getLocation = function(href) {
61+
var l = document.createElement("a");
62+
l.href = href;
63+
return l;
64+
};
65+
66+
var currentScript = document.currentScript || (function() {
67+
var scripts = document.getElementsByTagName('script');
68+
return scripts[scripts.length - 1];
69+
})();
70+
71+
var domain = ( (getLocation( currentScript.src )).hostname );
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
console.log('in file')
2+
3+
document.addEventListener("DOMContentLoaded", function() {
4+
var script = document.getElementById('3e6321862d90cf3a72c6198927067b35e82b0b82');
5+
// var script = document.currentScript;
6+
var par = script.parentNode;
7+
script.parentNode.style.overflow = 'hidden';
8+
9+
var iframe = document.createElement('iframe');
10+
iframe.src = 'https://learnpythonru.getcourse.ru/pl/lite/widget/widget'
11+
+ "?" + window.location.search.substring(1)
12+
+ "&id=1139675"
13+
+ "&ref=" + encodeURIComponent(document.referrer)
14+
+ "&loc=" + encodeURIComponent(document.location.href);
15+
iframe.style.width = '100%';
16+
iframe.style.height = '0px';
17+
iframe.style.border = 'none';
18+
iframe.style.overflow = 'hidden';
19+
iframe.setAttribute('allowfullscreen', 'allowfullscreen');
20+
iframe.className = '940';
21+
iframe.id = 'cc9d55a8a649fc463bf0a580d1c0567f6542b153' + '_' + iframe.className;
22+
// name можно получить изнутри iframe
23+
iframe.name = iframe.className;
24+
25+
var iframeId = iframe.id;
26+
27+
var gcEmbedOnMessage = function(e) {
28+
var insertedIframe = document.getElementById(iframeId);
29+
if (!insertedIframe) {
30+
return;
31+
}
32+
33+
if (e.data.uniqName == '3e6321862d90cf3a72c6198927067b35e82b0b82') {
34+
if (e.data.height) {
35+
if (e.data.iframeName) {
36+
if (e.data.iframeName == iframe.name) {
37+
par.style.height = ( e.data.height ) + "px";
38+
insertedIframe.style.height = (e.data.height) + "px";
39+
}
40+
} else {
41+
par.style.height = ( e.data.height ) + "px";
42+
insertedIframe.style.height = (e.data.height) + "px";
43+
}
44+
}
45+
}
46+
};
47+
48+
if (window.addEventListener) {
49+
window.addEventListener("message", gcEmbedOnMessage, false);
50+
} else if (window.attachEvent) {
51+
window.attachEvent('onmessage', gcEmbedOnMessage)
52+
} else {
53+
window['onmessage'] = gcEmbedOnMessage
54+
}
55+
56+
script.parentNode.insertBefore(iframe, script);
57+
par.removeChild( script )
58+
});
59+
60+
var getLocation = function(href) {
61+
var l = document.createElement("a");
62+
l.href = href;
63+
return l;
64+
};
65+
66+
var currentScript = document.currentScript || (function() {
67+
var scripts = document.getElementsByTagName('script');
68+
return scripts[scripts.length - 1];
69+
})();
70+
71+
var domain = ( (getLocation( currentScript.src )).hostname );

landing_page/mainpage/templates/mainpage/advanced.html

Lines changed: 7 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -139,75 +139,16 @@ <h2>Записаться</h2>
139139
</div>
140140
<div class="container m-hide">
141141
<div class="price-second-container row justify-content-center">
142-
{% if enrollment %}
143-
<div class="col-12 col-lg-10 col-xl-6 online-tab active">
144-
<div class="price-second bg-yellow">
145-
<h3 class="text-center d-none d-lg-block">онлайн курс</h3>
146-
<div class="price-list">
147-
<div class="price-item payment-before">
148-
<div
149-
class="pt-lg-3">
150-
<div class="price-parent">
151-
<div class="price-date"><b>Ранняя регистрация</b></div>
152-
<div class="price-date"> До
153-
{{ enrollment.early_price_date_to | date:"j E" }}</div>
154-
<strong class="price">{{ enrollment.early_price_rub }}
155-
р.</strong>
156-
</div>
157-
<div class="decr-price-parent">
158-
<a href="#howToPay" class="decr-price d-none d-lg-block scroll-to">В
159-
рассрочку
160-
<strong>от 3500 р/мес</strong></a>
161-
<a href="#howToPay" class="decr-price d-lg-none scroll-to"
162-
style="padding-top: 5px">Есть
163-
рассрочка</a>
164-
</div>
165-
</div>
166-
{% if today <= enrollment.early_price_date_to %}
167-
{% include 'mainpage/include/common/buttons/block_order_button.html' with modal_btn='yellow ' order_btn='yellow ' %}
168-
{% else %}
169-
<button class="yellow btn btn-warning btn-add btn-buy" data-toggle="modal"
170-
disabled
171-
data-target="#overlay">
172-
Регистрация закрыта
173-
</button>
174-
{% endif %}
175-
</div>
176-
177-
<div class="price-item payment-after">
178-
<div
179-
class="pt-lg-3">
180-
<div class="price-parent">
181-
<div class="price-date"><b>Обычная регистрация</b></div>
182-
<div class="price-date"> С
183-
{{ enrollment.late_price.date_from | date:"j E" }}</div>
184-
<strong class="price">{{ enrollment.late_price_rub }}
185-
р.</strong>
186-
</div>
187-
<div class="decr-price-parent">
188-
<a href="#howToPay" class="decr-price d-none d-lg-block scroll-to">В
189-
рассрочку
190-
<strong>от 4000 р/мес</strong></a>
191-
<a href="#howToPay" class="decr-price d-lg-none scroll-to"
192-
style="padding-top: 5px">Есть
193-
рассрочка</a>
194-
</div>
195-
</div>
196-
{% if today >= enrollment.late_price_date_from %}
197-
{% include 'mainpage/include/common/buttons/block_order_button.html' with order_btn='yellow ' %}
198-
{% else %}
199-
<button class="btn btn-warning btn-add btn-buy"
200-
disabled
201-
data-toggle="modal"
202-
data-target="#overlay">
203-
Регистрация закрыта
204-
</button>
205-
{% endif %}
206-
</div>
142+
<div class="col-12 col-lg-10 col-xl-6 online-tab active">
143+
<div class="price-second bg-yellow">
144+
<h3 class="text-center d-none d-lg-block">онлайн курс</h3>
145+
<div class="priceList">
146+
<div class="price-list-item" style="padding: 10px; background-color: #ffffff;">
147+
<script id="f5be3bcced9b8d99a4cc095aadcc152acc1c0aa0" src="{% static 'js/widgets/advance_widget_bottom.js' %}"></script>
207148
</div>
208149
</div>
209150
</div>
210-
{% endif %}
151+
</div>
211152
</div>
212153
</div>
213154
</section>

0 commit comments

Comments
 (0)