PageSourceSearch

https://doahomework.com/js/default.js

js doahomework.com collected 2026-10-06 15:24:53 UTC 22,833 bytes, 452 lines download raw bytes

1function order() {
2    document.location.href = "/order/?coupon=HOMEFIRST"
3}
4$(document).ready(function() {
5    var e = $(window).width()
6        , a = (100 - 100 * $(".popup__discount__modal").width() / e) / 2;
7    $(".popup__discount__modal").css({
8        left: a + "%"
9    }),
10        $("a[class ^= anchor_href]").on("click", function(e) {
11            e.preventDefault();
12            var a = this.getAttribute("class");
13            var as = a.split('_');
14            e = $(".header").height(),
15                $.scrollTo($('#'+as[2]).offset().top - e, 1e3)
16        }),
17
18        $("p.anchor_href a").on("click", function(e) {
19            e.preventDefault();
20            var a = this.getAttribute("href");
21            e = $(".header").height(),
22                $.scrollTo($(a).offset().top - e, 1e3)
23        })
24    $(".calc-here_btn").on("click", function(e) {
25            e.preventDefault();
26            var a = this.getAttribute("href");
27            e = $(".header").height(),
28                $.scrollTo($(a).offset().top - e, 1e3)
29        })
30}),
31    $(document).ready(function() {
32        $(".js-main-info").actual("outerHeight", {
33            absolute: !0
34        }),
35            $(".js-bottom-blocks").actual("outerHeight", {
36                absolute: !0
37            })
38    }),
39    $(function() {
40        var e = $(".js-header").actual("outerHeight", {
41            absolute: !0
42        })
43            , a = $(".js-overhead").actual("outerHeight", {
44            absolute: !0
45        })
46            , s = $(".js-spacer").actual("outerHeight", {
47            absolute: !0
48        });
49        $(".js-overhead-close").click(function() {
50            $(".js-overhead").hide(),
51                $(".js-wrapper").css({
52                    "margin-top": e - a
53                }),
54                $(".js-spacer").css({
55                    height: s - e + a
56                }),
57                $.cookie("discount", "true", {
58                    expires: 365,
59                    path: "/"
60                })
61        })
62    }),
63    $(function() {
64        var e = $(".js-header").actual("outerHeight", {
65            absolute: !0
66        })
67            , a = $(".js-spacer").actual("outerHeight", {
68            absolute: !0
69        });
70        $(".js-wrapper").css({
71            "margin-top": e
72        }),
73            $(".js-spacer").css({
74                height: a - e
75            })
76    }),
77    $(window).scroll(function() {
78        150 < $(this).scrollTop() ? $(".js-topline").addClass("header__topline_state_scrolled") : $(".js-topline").removeClass("header__topline_state_scrolled")
79    }),
80    $(function() {
81        $(".js-menu-button").click(function() {
82            $(".js-menu").toggleClass("navigation-mobile__animation-show"),
83                $("body").toggleClass("overflow-hidden")
84        })
85    }),
86    $(function() {
87        $(".js-faq-item").each(function() {
88            var a = $(this);
89            $(".js-faq-question", a).click(function(e) {
90                return e.preventDefault(),
91                    $div = $(".js-faq-answer", a),
92                    $div.slideToggle(400),
93                    $(".js-faq-answer").not($div).slideUp(400),
94                    $div.parent(".js-faq-item").toggleClass("faq__item_state_active").siblings().removeClass("faq__item_state_active"),
95                    !1
96            }),
97                $(".js-faq-answer").first().show()
98        })
99    }),
100    $(document).on("ready", function() {
101        $modal = $(".modal-frame"),
102            $overlay = $(".modal-overlay"),
103            $body = $("body"),
104            $modal.bind("webkitAnimationEnd oanimationend msAnimationEnd animationend", function(e) {
105                $modal.hasClass("state-leave") && $modal.removeClass("state-leave")
106            }),
107            $(".js-modal-close").on("click", function() {
108                $overlay.removeClass("state-show"),
109                    $modal.removeClass("state-appear").addClass("state-leave"),
110                    $body.removeClass("overflow-hidden")
111            }),
112            $(".js-modal-button").on("click", function() {
113                $overlay.addClass("state-show"),
114                    $modal.removeClass("state-leave").addClass("state-appear"),
115                    $body.addClass("overflow-hidden")
116            })
117    });
118if($('.ord').length){
119    console.log('Order');
120}else{
121    var json_var = JSON.parse(AcademyPriceDependenceList)
122        , col33 = Math.ceil(json_var.College[10800])
123        , col1 = Math.ceil(json_var.College[86400])
124        , col2 = Math.ceil(json_var.College[172800])
125        , col3 = Math.ceil(json_var.College[259200])
126        , col5 = Math.ceil(json_var.College[432e3])
127        , col7 = Math.ceil(json_var.College[604800])
128        , col14 = Math.ceil(json_var.College[1209600])
129        , col8 = Math.ceil(json_var.College[28800])
130        , hs33 = Math.ceil(json_var["High School"][10800])
131        , hs1 = Math.ceil(json_var["High School"][86400])
132        , hs2 = Math.ceil(json_var["High School"][172800])
133        , hs3 = Math.ceil(json_var["High School"][259200])
134        , hs5 = Math.ceil(json_var["High School"][432e3])
135        , hs7 = Math.ceil(json_var["High School"][604800])
136        , hs14 = Math.ceil(json_var["High School"][1209600])
137        , hs8 = Math.ceil(json_var["High School"][28800])
138        , un1 = Math.ceil(json_var.University[86400])
139        , un2 = Math.ceil(json_var.University[172800])
140        , un3 = Math.ceil(json_var.University[259200])
141        , un5 = Math.ceil(json_var.University[432e3])
142        , un7 = Math.ceil(json_var.University[604800])
143        , un14 = Math.ceil(json_var.University[1209600])
144        , mas1 = Math.ceil(json_var.Masters[86400])
145        , mas2 = Math.ceil(json_var.Masters[172800])
146        , mas3 = Math.ceil(json_var.Masters[259200])
147        , mas5 = Math.ceil(json_var.Masters[432e3])
148        , mas7 = Math.ceil(json_var.Masters[604800])
149        , mas14 = Math.ceil(json_var.Masters[1209600])
150        , phd1 = Math.ceil(json_var.PhD[86400])
151        , phd2 = Math.ceil(json_var.PhD[172800])
152        , phd3 = Math.ceil(json_var.PhD[259200])
153        , phd5 = Math.ceil(json_var.PhD[432e3])
154        , phd7 = Math.ceil(json_var.PhD[604800])
155        , phd14 = Math.ceil(json_var.PhD[1209600]);
156};
157$(document).ready(function() {
158    "/order/" != window.location.pathname && (modalPopupDiscount.afterShow = function() {
159            document.getElementById("minutes").innerHTML = 4,
160                document.getElementById("seconds").innerHTML = 5,
161                document.getElementById("seconds2").innerHTML = 9;
162            var e = new Date
163                , s = new Date(e);
164            s.setMinutes(e.getMinutes() + 5);
165            var t = setInterval(function() {
166                var e = (new Date).getTime();
167                if (distance = s - e,
168                    minutes = Math.floor(distance % 36e5 / 6e4),
169                    seconds = Math.floor(distance % 6e4 / 1e3),
170                    $(".timer").hasClass("show_timer")) {
171                    document.getElementById("minutes").innerHTML = minutes;
172                    var a = seconds.toString().split("");
173                    10 <= seconds ? (document.getElementById("seconds").innerHTML = a[0],
174                        document.getElementById("seconds2").innerHTML = a[1]) : (document.getElementById("seconds").innerHTML = 0,
175                        document.getElementById("seconds2").innerHTML = seconds)
176                }
177                distance < 0 && (clearInterval(t),
178                    $(".popup__discount__modal-close-button").click())
179            }, 0)
180        }
181    )
182});
183var navSpace = $("header").height();
184$(function() {
185    if ($(".text-main__left").hasClass("main-text-sidebar")) {
186        footerHeight = $("footer").css("height");
187        var t = $(".sidebar__item-price").offset().top + 300;
188        $(window).scroll(function() {
189            var e = $(document).scrollTop()
190                , a = $(".cta-row").offset().top - 220
191                , s = $(".sidebar__item-price").outerHeight();
192            "/" == window.location.pathname && (a = $(".row-testimonials").offset().top - 220),
193                t < e && e < a - s ? $(".sidebar__item-price").addClass("fixed_sidebar").removeAttr("style") : a - s < e ? $(".sidebar__item-price").removeClass("fixed_sidebar").css({
194                    position: "absolute",
195                    bottom: "0",
196                    top: "auto"
197                }) : $(".sidebar__item-price").removeClass("fixed_sidebar")
198        })
199    }
200}),
201    $(function() {
202        if ($(".text-main__left").hasClass("main-text-sidebar")) {
203            var a = $(".sidebar__item-price").offset().top + 300;
204            $(".cta-row").css("height"),
205                $(window).scroll(function() {
206                    var e = $(window).scrollTop();
207                    a <= e ? ($(".sidebar__item-price").addClass("fixed-price"),
208                        $("body").css({
209                            paddingTop: navSpace
210                        }),
211                        $(".sidebar-features, .sidebar-formats, .sidebar-guarantee").addClass("dissappearing")) : ($(".sidebar__item-price").removeClass("fixed-price"),
212                        $("body").css({
213                            paddingTop: "0"
214                        }),
215                        $(".sidebar-features, .sidebar-formats, .sidebar-guarantee").removeClass("dissappearing"))
216                })
217        }
218    });
219
220
221//calculator
222
223$('#academ-level').change(function() {
224    var $option = $(this).find('option:selected');
225    var valueOpt = $option.val();
226    if(valueOpt == "HighSchool"){
227        $('.home-main__calc-bottom').html('<li><input name="Deadline-none" id="price-6" type="radio"><label for="price-6"><h3>$10.00<span>/page</span></h3><p>14 days Deadline</p></label></li><li><input name="Deadline-none" id="price-7" type="radio"><label for="price-7"><h3>$11.00<span>/page</span></h3><p>10 days Deadline</p></label></li><li><input name="Deadline-none" id="price-5" type="radio"><label for="price-5"><h3>$12.00<span>/page</span></h3><p>7 days Deadline</p></label></li><li><input name="Deadline-none" id="price-4" type="radio"><label for="price-4"><h3>$14.00<span>/page</span></h3><p>5 days Deadline</p></label></li><li><input name="Deadline-none" id="price-3" type="radio"><label for="price-3"><h3>$15.00<span>/page</span></h3><p>3 days Deadline</p></label></li><li><input name="Deadline-none" id="price-2" type="radio"><label for="price-2"><h3>$21.00<span>/page</span></h3><p>1 day Deadline</p></label></li><li><input name="Deadline-none" id="price-1" type="radio"><label for="price-1"><h3>$25.00<span>/page</span></h3><p>8 hours Deadline</p></label></li>');
228        $('input[id="price-6"]').prop('checked', true);
229        $("#deadline").val('1209600').change();
230        $("label").click(function () {
231            var value = $(this).attr('for');
232            if (value == "price-6") {
233                $("#deadline").val('1209600').change();
234            }
235            if (value == "price-7") {
236                $("#deadline").val('864000').change();
237            }
238            if (value == "price-5") {
239                $("#deadline").val('604800').change();
240            }
241            if (value == "price-4") {
242                $("#deadline").val('432000').change();
243            }
244            if (value == "price-3") {
245                $("#deadline").val('259200').change();
246            }
247            if (value == "price-2") {
248                $("#deadline").val('86400').change();
249            }
250            if (value == "price-1") {
251                $("#deadline").val('28800').change();
252            }
253        });
254    }
255    if(valueOpt == "College"){
256        $('.home-main__calc-bottom').html('<li><input name="deadline-none" id="price-6" type="radio"><label for="price-6"><h3>$14.00<span>/page</span></h3><p>14 days Deadline</p></label></li><li><input name="deadline-none" id="price-7" type="radio"><label for="price-7"><h3>$14.50<span>/page</span></h3><p>10 days Deadline</p></label></li><li><input name="deadline-none" id="price-5" type="radio"><label for="price-5"><h3>$15.00<span>/page</span></h3><p>7 days Deadline</p></label></li><li><input name="deadline-none" id="price-4" type="radio"><label for="price-4"><h3>$16.00<span>/page</span></h3><p>5 days Deadline</p></label></li><li><input name="deadline-none" id="price-3" type="radio"><label for="price-3"><h3>$19.00<span>/page</span></h3><p>3 days Deadline</p></label></li><li><input name="deadline-none" id="price-2" type="radio"><label for="price-2"><h3>$32.00<span>/page</span></h3><p>1 day Deadline</p></label></li><li><input name="deadline-none" id="price-1" type="radio"><label for="price-1"><h3>$34.00<span>/page</span></h3><p>8 hours Deadline</p></label></li>');
257        $('input[id="price-6"]').prop('checked', true);
258        $("#deadline").val('1209600').change();
259        $("label").click(function () {
260            var value = $(this).attr('for');
261            if (value == "price-6") {
262                $("#deadline").val('1209600').change();
263            }
264            if (value == "price-7") {
265                $("#deadline").val('864000').change();
266            }
267            if (value == "price-5") {
268                $("#deadline").val('604800').change();
269            }
270            if (value == "price-4") {
271                $("#deadline").val('432000').change();
272            }
273            if (value == "price-3") {
274                $("#deadline").val('259200').change();
275            }
276            if (value == "price-2") {
277                $("#deadline").val('86400').change();
278            }
279            if (value == "price-1") {
280                $("#deadline").val('28800').change();
281            }
282        });
283    }
284    if(valueOpt == "University"){
285        $('.home-main__calc-bottom').html('<li><input name="deadline-none" id="price-6" type="radio"><label for="price-6"><h3>$16.00<span>/page</span></h3><p>14 days Deadline</p></label></li><li><input name="deadline-none" id="price-7" type="radio"><label for="price-7"><h3>$16.50<span>/page</span></h3><p>10 days Deadline</p></label></li><li><input name="deadline-none" id="price-5" type="radio"><label for="price-5"><h3>$17.00<span>/page</span></h3><p>7 days Deadline</p></label></li><li><input name="deadline-none" id="price-4" type="radio"><label for="price-4"><h3>$20.00<span>/page</span></h3><p>5 days Deadline</p></label></li><li><input name="deadline-none" id="price-3" type="radio"><label for="price-3"><h3>$23.00<span>/page</span></h3><p>3 days Deadline</p></label></li><li><input name="deadline-none" id="price-2" type="radio"><label for="price-2"><h3>$38.00<span>/page</span></h3><p>1 day Deadline</p></label></li><li><input name="deadline-none" id="price-1" type="radio"><label for="price-1"><h3>Not Available</h3><p>8 hours Deadline</p></label></li>');
286        $('input[id="price-6"]').prop('checked', true);
287        $("#deadline").val('1209600').change();
288        $('input[id="price-1"]').prop('disabled', true);
289        $('label[for=price-1]').attr('style', 'background: #f7f7f7;');
290        $("label").click(function () {
291            var value = $(this).attr('for');
292            if (value == "price-6") {
293                $("#deadline").val('1209600').change();
294            }
295            if (value == "price-7") {
296                $("#deadline").val('864000').change();
297            }
298            if (value == "price-5") {
299                $("#deadline").val('604800').change();
300            }
301            if (value == "price-4") {
302                $("#deadline").val('432000').change();
303            }
304            if (value == "price-3") {
305                $("#deadline").val('259200').change();
306            }
307            if (value == "price-2") {
308                $("#deadline").val('86400').change();
309            }
310        });
311    }
312    if(valueOpt == "Masters"){
313        $('.home-main__calc-bottom').html('<li><input name="deadline-none" id="price-6" type="radio"><label for="price-6"><h3>$22.00<span>/page</span></h3><p>14 days Deadline</p></label></li><li><input name="deadline-none" id="price-7" type="radio"><label for="price-7"><h3>$23.00<span>/page</span></h3><p>10 days Deadline</p></label></li><li><input name="deadline-none" id="price-5" type="radio"><label for="price-5"><h3>$24.00<span>/page</span></h3><p>7 days Deadline</p></label></li><li><input name="deadline-none" id="price-4" type="radio"><label for="price-4"><h3>$27.00<span>/page</span></h3><p>5 days Deadline</p></label></li><li><input name="deadline-none" id="price-3" type="radio"><label for="price-3"><h3>$30.00<span>/page</span></h3><p>3 days Deadline</p></label></li><li><input name="deadline-none" id="price-2" type="radio"><label for="price-2"><h3>$50.00<span>/page</span></h3><p>1 day Deadline</p></label></li><li><input name="deadline-none" id="price-1" type="radio"><label for="price-1"><h3>Not Available</h3><p>8 hours Deadline</p></label></li>');
314        $('input[id="price-6"]').prop('checked', true);
315        $("#deadline").val('1209600').change();
316        $('input[id="price-1"]').prop('disabled', true);
317        $('label[for=price-1]').attr('style', 'background: #f7f7f7;');
318        $("label").click(function () {
319            var value = $(this).attr('for');
320            if (value == "price-6") {
321                $("#deadline").val('1209600').change();
322            }
323            if (value == "price-7") {
324                $("#deadline").val('864000').change();
325            }
326            if (value == "price-5") {
327                $("#deadline").val('604800').change();
328            }
329            if (value == "price-4") {
330                $("#deadline").val('432000').change();
331            }
332            if (value == "price-3") {
333                $("#deadline").val('259200').change();
334            }
335            if (value == "price-2") {
336                $("#deadline").val('86400').change();
337            }
338        });
339    }
340    if(valueOpt == "PhD"){
341        $('.home-main__calc-bottom').html('<li><input name="deadline-none" id="price-6" type="radio"><label for="price-6"><h3>$29.00<span>/page</span></h3><p>14 days Deadline</p></label></li><li><input name="deadline-none" id="price-7" type="radio"><label for="price-7"><h3>$30.00<span>/page</span></h3><p>10 days Deadline</p></label></li><li><input name="deadline-none" id="price-5" type="radio"><label for="price-5"><h3>$31.00<span>/page</span></h3><p>7 days Deadline</p></label></li><li><input name="deadline-none" id="price-4" type="radio"><label for="price-4"><h3>$32.00<span>/page</span></h3><p>5 days Deadline</p></label></li><li><input name="deadline-none" id="price-3" type="radio"><label for="price-3"><h3>$35.00<span>/page</span></h3><p>3 days Deadline</p></label></li><li><input name="deadline-none" id="price-2" type="radio"><label for="price-2"><h3>$58.00<span>/page</span></h3><p>1 day Deadline</p></label></li><li><input name="deadline-none" id="price-1" type="radio"><label for="price-1"><h3>Not Available</h3><p>8 hours Deadline</p></label></li>');
342        $('input[id="price-6"]').prop('checked', true);
343        $("#deadline").val('1209600').change();
344        $('input[id="price-1"]').prop('disabled', true);
345        $('label[for=price-1]').attr('style', 'background: #f7f7f7;');
346        $("label").click(function () {
347            var value = $(this).attr('for');
348            if (value == "price-6") {
349                $("#deadline").val('1209600').change();
350            }
351            if (value == "price-7") {
352                $("#deadline").val('864000').change();
353            }
354            if (value == "price-5") {
355                $("#deadline").val('604800').change();
356            }
357            if (value == "price-4") {
358                $("#deadline").val('432000').change();
359            }
360            if (value == "price-3") {
361                $("#deadline").val('259200').change();
362            }
363            if (value == "price-2") {
364                $("#deadline").val('86400').change();
365            }
366        });
367    }
368});
369$(document).ready(function() {
370    $('input[id="price-6"]').prop('checked', true);
371    $("label").click(function () {
372        var value = $(this).attr('for');
373        if (value == "price-6") {
374            $("#deadline").val('1209600').change();
375            console.log("global");
376        }
377        if (value == "price-7") {
378            $("#deadline").val('864000').change();
379        }
380        if (value == "price-5") {
381            $("#deadline").val('604800').change();
382        }
383        if (value == "price-4") {
384            $("#deadline").val('432000').change();
385        }
386        if (value == "price-3") {
387            $("#deadline").val('259200').change();
388        }
389        if (value == "price-2") {
390            $("#deadline").val('86400').change();
391        }
392        if (value == "price-1") {
393      
393      if($('#count-pages').val() < 11 ){
394                $("#deadline").val('28800').change();
395            }
396        }
397    });
398});
399// navigation
400$(document).ready(function(){
401    var navHTML = '<ol class="menu_anchor__items"></ol>';
402    $('.menu_anchor-title').after($(navHTML));
403    var navNumber = 1, nested = 0, nestedCounter = 1, arg = 0;
404
405    $('h2, h3').each(function(key, i) {
406        $(this).attr({
407            id: 'heading' + navNumber
408        });
409        if ($(this).is('h2')) {
410            console.log();
411            $('.menu_anchor__items').append(
412                '<li class="menu_anchor__item item-level_2_'+key+'">' +
413                '<a class="menu_anchor__link" href="#heading' + navNumber + '">' +
414                $(this).text() +
415                '</a>' +
416                '</li>'
417            );
418            arg = key;
419            nested = 0;
420            nestedCounter = nestedCounter + 1;
421        } else {
422            if(nested == 0){
423                $('.menu_anchor__item.item-level_2_'+arg).append(
424                    '<ol class="nested__nav menu_anchor__items-nested_'+nestedCounter+'">' +
425                    '<li class="menu_anchor__item item-level_3">' +
426                    '<a class="menu_anchor__link menu_anchor__link_s" href="#heading' + navNumber + '">' +
427                    $(this).text() +
428                    '</a>' +
429                    '</li>' +
430                    '</ol>'
431                );
432                nested = 1;
433            }else{
434                $('.menu_anchor__items-nested_'+nestedCounter).append(
435                    '<li class="menu_anchor__item item-level_3">' +
436                    '<a class="menu_anchor__link menu_anchor__link_s" href="#heading' + navNumber + '">' +
437                    $(this).text() +
438                    '</a>' +
439                    '</li>'
440                );
441            }
442        }
443        navNumber++;
444    });
445
446    $(".menu_anchor__link").on("click", function(e) {
447        e.preventDefault();
448        var a = this.getAttribute("href");
449        e = $(".header").height(),
450            $.scrollTo($(a).offset().top - e, 1e3)
451    })
452});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.