PageSourceSearch

https://ui.ac.ir/uploads/international/assets/js/blind.js

js ui.ac.ir collected 2026-09-24 09:13:15 UTC 13,482 bytes, 188 lines download raw bytes

1! function(e, t, o, s) {
2    var r = "rvFontsize",
3        n = {
4            targetSection: "body",
5            store: !1,
6            storeIsDefined: !("undefined" == typeof store),
7            variations: 7,
8            controllers: {
9                append: !0,
10                appendTo: "body",
11                showResetButton: !1,
12                template: ""
13            }
14        };
15
16    function a(t, o) {
17        var s = this;
18        s.element = t, s.options = e.extend({}, n, o), s._defaults = n, s._name = r, s.init()
19    }
20    a.prototype = {
21        init: function() {
22            var e = this;
23            e.defineElements(), e.getDefaultFontSize(), !0 !== e.options.store || e.options.storeIsDefined || e.dependencyWarning()
24        },
25        dependencyWarning: function() {
26            console.warn('When you difine "store: true", store script is required (https://github.com/ramonvictor/rv-jquery-fontsize/blob/master/js/store.min.js)')
27        },
28        bindControlerHandlers: function() {
29            var t = this;
30            t.$decreaseButton = e(".rvfs-decrease"), t.$decreaseButton.length > 0 && t.$decreaseButton.on("click", (function(o) {
31                if (o.preventDefault(), !e(this).hasClass("disabled")) {
32                    var s = t.getCurrentVariation();
33                    s > 1 && (t.$target.removeClass("rvfs-" + s), t.$target.attr("data-rvfs", s - 1), !0 === t.options.store && t.storeCurrentSize(), t.fontsizeChanged())
34                }
35            })), t.$increaseButton = e(".rvfs-increase"), t.$increaseButton.length > 0 && t.$increaseButton.on("click", (function(o) {
36                if (o.preventDefault(), !e(this).hasClass("disabled")) {
37                    var s = t.getCurrentVariation();
38                    s < t.options.variations && (t.$target.removeClass("rvfs-" + s), t.$target.attr("data-rvfs", s + 1), !0 === t.options.store && t.storeCurrentSize(), t.fontsizeChanged())
39                }
40            })), t.$resetButton = e(".rvfs-reset"), t.$resetButton.length > 0 && t.$resetButton.on("click", (function(o) {
41                if (o.preventDefault(), !e(this).hasClass("disabled")) {
42                    var s = t.getCurrentVariation();
43                    t.$target.removeClass("rvfs-" + s), t.$target.attr("data-rvfs", t.defaultFontsize), !0 === t.options.store && t.storeCurrentSize(), t.fontsizeChanged()
44                }
45            }))
46        },
47        defineElements: function() {
48            var t = this;
49            if (t.$target = e(t.options.targetSection), !1 !== t.options.controllers.append) {
50                var o = t.options.controllers.showResetButton ? '<a href="#" class="rvfs-reset btn" title="Default font size">A</a>' : "",
51                    s = t.options.controllers.template,
52                    r = "";
53                t.$appendTo = e(t.options.controllers.appendTo), r = e.trim(s).length > 0 ? s : '<div class="btn-group"><a href="#" class="rvfs-decrease btn" title="Decrease font size">A-</a></li>' + o + '<a href="#" class="rvfs-increase btn" title="Increase font size">A+</a></li></div>', t.$appendTo.html(r), t.bindControlerHandlers()
54            }
55        },
56        getDefaultFontSize: function() {
57            var e = this,
58                t = e.options.variations;
59            e.defaultFontsize = 0, e.defaultFontsize = t % 2 == 0 ? t / 2 + 1 : parseInt(t / 2 + 1, 10), e.setDefaultFontSize()
60        },
61        setDefaultFontSize: function() {
62            var e = this;
63            if (!0 === e.options.store && e.options.storeIsDefined) {
64                var t = store.get("rvfs") || e.defaultFontsize;
65                e.$target.attr("data-rvfs", t)
66            } else e.$target.attr("data-rvfs", e.defaultFontsize);
67            e.fontsizeChanged()
68        },
69        storeCurrentSize: function() {
70            var e = this;
71            e.options.storeIsDefined ? store.set("rvfs", e.$target.attr("data-rvfs")) : e.dependencyWarning()
72        },
73        getCurrentVariation: function() {
74            return parseInt(this.$target.attr("data-rvfs"), 10)
75        },
76        fontsizeChanged: function() {
77            var e = this,
78                t = e.getCurrentVariation();
79            e.$target.addClass("rvfs-" + t), t === e.defaultFontsize ? e.$resetButton.addClass("disabled") : e.$resetButton.removeClass("disabled"), t === e.options.variations ? e.$increaseButton.addClass("disabled") : e.$increaseButton.removeClass("disabled"), 1 === t ? e.$decreaseButton.addClass("disabled") : e.$decreaseButton.removeClass("disabled")
80        }
81    }, e.fn[r] = function(t) {
82        var o = this;
83        return o.each((function() {
84            e.data(o, "plugin_" + r) || e.data(o, "plugin_" + r, new a(o, t))
85        }))
86    }, e[r] = function() {
87        var o = e(t);
88        return o.rvFontsize.apply(o, Array.prototype.slice.call(arguments, 0))
89    }
90}(jQuery, window, document);
91let address = "/uploads/ac/assets";
92
93function hasClass(e, t) {
94    return e.className && new RegExp("(\\s|^)" + t + "(\\s|$)").test(e.className)
95}! function(e) {
96    e(document).ready((function() {
97        e(".reset-colors").click((function() {
98            e(".wrapper").removeClass("website-color-1 website-color-2 website-color-3")
99        })), e(".website-color-1").click((function() {
100            e(".wrapper").addClass("website-color-1").removeClass("website-color-2 website-color-3")
101        })), e(".website-color-2").click((function() {
102            e(".wrapper").addClass("website-color-2").removeClass("website-color-1 website-color-3")
103        })), e(".website-color-3").click((function() {
104            e(".wrapper").addClass("website-color-3").removeClass("website-color-1 website-color-2")
105        }))
106    }))
107}(jQuery);
108var lineHeight, body = document.body.querySelector(".wrapper"),
109    demos = document.querySelectorAll(".classes_list a");
110
111function deactiveAllButtons() {
112    [].forEach.call(demos, (function(e) {
113        deactiveButton(e)
114    }))
115}
116
117function deactiveButton(e) {
118    e.className = e.className.replace(" active ", "")
119} [].forEach.call(demos, (function(e) {
120    e.addEventListener("click", (function() {
121        var e = this.getAttribute("id");
122        $(this).hasClass("active") ? (body.className = "wrapper", $(this).removeClass("active"), console.log("remove")) : (console.log("add"), body.className = "wrapper " + e, deactiveAllButtons(), this.className += " active ")
123    }))
124})), $("#blindness").on("click", (function(e) {
125    e.preventDefault(), $("#menu-1").hasClass("menu-1--open") ? ($("#menu-1").removeClass("menu-1--open"), $(".color-back").removeClass("color-back--open")) : ($("#menu-1").addClass("menu-1--open"), $(".color-back").addClass("color-back--open"))
126})), $(".color-back").on("click", (function() {
127    $("#menu-1").removeClass("menu-1--open"), $(".color-back").removeClass("color-back--open")
128}));
129var lhClicks = 0;
130$("#addlh").click((function() {
131    lhClicks += 1, $("#sublh").prop("disabled", !1), lhClicks >= 3 && $(this).prop("disabled", !0), texttags && lhClicks <= 3 && texttags.forEac
131h((function(e) {
132        lineHeight = parseInt($(e).css("line-height")), lineHeight += 5, $(e).css("line-height", String(lineHeight) + "px")
133    }))
134})), $("#sublh").click((function() {
135    lhClicks -= 1, $("#addlh").prop("disabled", !1), lhClicks <= -2 && $(this).prop("disabled", !0), texttags && lhClicks >= -2 && texttags.forEach((function(e) {
136        lineHeight = parseInt($(e).css("line-height")), lineHeight -= 5, $(e).css("line-height", String(lineHeight) + "px")
137    }))
138})), $("#deflh").click((function() {
139    $("#addlh,#sublh").prop("disabled", !1), lhClicks = 0, texttags && texttags.forEach((function(e) {
140        $(e).css("line-height", "")
141    }))
142})), $("#cur1").click((function() {
143    $("body").css("cursor", "url(/uploads/ac/assets/img/cursor-1.png) , auto")
144})), $("#cur2").click((function() {
145    $("body").css("cursor", "url(/uploads/ac/assets/img/cursor-2.png) , auto")
146})), $("#curdef").click((function() {
147    $("body").css("cursor", "")
148})), $(document).ready((function() {
149    $('a[href*="https://]"]').attr("target", "_blank"), $('a[href*="https://]').attr("target", "_blank"), $.rvFontsize({
150        targetSection: "body",
151        store: !1,
152        variations: 7,
153        controllers: {
154            appendTo: ".font-resize",
155            showResetButton: !0,
156            template: '<div class="btn-group"><a href="#" class="rvfs-decrease btn">Ø¢-</a><a href="#" class="rvfs-reset btn">Ø¢</a><a href="#" class="rvfs-increase btn">Ø¢+</a></div>'
157        }
158    })
159})), $(document).ready((function() {
160    const e = document.querySelector(".accessibility__menu");
161    let t = 100,
162        o = !1;
163    const s = `@font-face {font-family: Shabnam;src: url('${address}/fonts/Shabnam-FD.woff') format('woff');font-weight: normal;font-style: normal;font-display: swap;} @font-face {font-family: Shabnam;src: url('${address}/fonts/Shabnam-Bold-FD.woff') format('woff');font-weight: bold;font-style: normal;font-display: swap;} @font-face {font-family: Shabnam;src: url('${address}/fonts/Shabnam-Medium-FD.woff') format('woff');font-weight: 500;font-style: normal;font-display: swap;}`;
164    let r = !1;
165    const n = `@font-face {\n        font-family: Sahel;\n        src: url('${address}/fonts/Sahel-FD.woff') \n        format('woff');\n        font-weight: normal;\n        font-style: normal;\n        font-display: swap;} \n        @font-face {font-family: Sahel;\n            src: url('${address}/fonts/Sahel-Bold-FD.woff') \n            format('woff');\n            font-weight: bold;\n            font-style: normal;\n            font-display: swap;} \n            @font-face {font-family: Sahel;src: url('${address}/fonts/Sahel-SemiBold-FD.woff') format('woff');font-weight: 500;font-style: normal;font-display: swap;}`;
166    var a = getComputedStyle(document.body).getPropertyValue("--primary-color"),
167        i = getComputedStyle(document.body).getPropertyValue("--secondary-color");
168    e.addEventListener("click", (function(e) {
169        e.target.classList.contains("rvfs-increase") && (t += 5, document.body.style.fontSize = t + "%"), e.target.classList.contains("rvfs-reset") && (t = 100, document.body.style.fontSize = t + "%"), e.target.classList.contains("rvfs-decrease") && (t -= 5, document.body.style.fontSize = t + "%"), "cur1" == e.target.id && (document.body.style.cursor = 'url("' + address + '/img/cursor-1.png"), auto'), "curdef" == e.target.id && (document.body.style.cursor = ""), "cur2" == e.target.id && (document.body.style.cursor = 'url("' + address + '/img/cursor-2.png"), auto'), "primary-color" == e.target.id && (document.querySelector("head").innerHTML += `<style>:root {--primary-color: ${e.target.value} !important;}</style>`), "secondary-color" == e.target.id && (document.querySelector("head").innerHTML += `<style>:root {--secondary-color: ${e.target.value} !important;}</style>`), "first-color" == e.target.id && (document.querySelector("head").innerHTML += `<style>:root {--primary-color: ${a} !important;\n            --secondary-color: ${i} !important;\n        }</style>`), "Sahel" == e.target.id && (r || (r = !0, document.querySelector("head").innerHTML += `<style>${n}</style>`), document.body.style.fontFamily = "Sahel"), "Vazir" == e.target.id && (document.body.style.fontFamily = " Vazir FD"), "Shabnam" == e.target.id && (o || (o = !0, document.querySelector("head").innerHTML += `<style>${s}</style>`), document.body.style.fontFamily = "Shabnam"), "bgcolor1" == e.target.id && (document.querySelector(".wrapper").style.background = "#fff", $(".sec ").css("background-color", "#fff")), "bgcolor2" == e.target.id && (document.querySelector(".wrapper").style.background = "#d8d8d8", $(".sec ").css("background-color", "#d8d8d8")), "bgcolor3" == e.target.id && (document.querySelector(".wrapper").style.background = "#333333", $(".sec ").css("background-color", "#333333")), "bgcolor4" == e.target.id && (document.querySelector(".wrapper").style.background = "#fffedb", $(".sec ").css("background-color", "#fffedb"))
170    }))
171}));
172var wordSpaceing, texttags = document.querySelectorAll(".wrapper"),
173    wsClicks = 0;
174$("#addws").click((function() {
175    wsClicks += 1, $("#subws").prop("disabled", !1), wsClicks >= 3 && $(this).prop("disabled", !0), texttags && wsClicks <= 3 && texttags.forEac
175h((function(e) {
176        wordSpaceing = parseInt($(e).css("word-spacing")), wordSpaceing += 3, $(e).css("word-spacing", String(wordSpaceing) + "px")
177    }))
178})), $("#subws").click((function() {
179    wsClicks -= 1, $("#addws").prop("disabled", !1), wsClicks <= -1 && $(this).prop("disabled", !0), texttags && wsClicks >= -1 && texttags.forEach((function(e) {
180        wordSpaceing = parseInt($(e).css("word-spacing")), wordSpaceing -= 3, $(e).css("word-spacing", String(wordSpaceing) + "px")
181    }))
182})), $("#defws").click((function() {
183    wsClicks = 0, $("#addws,#subws").prop("disabled", !1), texttags && texttags.forEach((function(e) {
184        $(e).css("word-spacing", "")
185    }))
186})), $(".font-color").on("change", (function(e) {
187    document.querySelector("head").innerHTML += `<style>:root {--primary-color: ${$("#primary-color").val()} !important;}</style>`, document.querySelector("head").innerHTML += `<style>:root {--secondary-color: ${$("#secondary-color").val()} !important;}</style>`
188}));

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.