const linksPath = "https://www.safiranahan.com/"; const imagesPath = linksPath + "storage/app/public/image/"; const fontsPath = linksPath + "storage/app/public/font/"; // const linksPath = "/"; // const imagesPath = "../../storage/app/public/image/"; // const fontsPath = "../../storage/app/public/font/"; const linkHome = linksPath; const linkRegLogin = linksPath + "login/"; const linkPriceList = linksPath + "قیمت-ورق"; const linkSpecialSell = linksPath + "فروش-ویژه"; const linkNews = linksPath; const linkBlog = linksPath + "blog/"; const linkAboutUs = linksPath + "درباره-ما"; const linkContactUs = linksPath + "ارتباط-با-ما"; const linkOurRules = linksPath + "قوانین-ما"; const linkSteelMarket = linkBlog + "steel-analysis/"; const linkCarMarket = linkBlog + "car-analysis/"; const linkCryptoMarket = linkBlog + "crypto-analysis/"; const linkContactSaleTeam = linksPath; const linkFAQ = linksPath; const linkTel1 = "tel:+983191001040"; const linkTel2 = "tel:+983137130"; const linkLocation = "https://goo.gl/maps/43oqXBU3XuotBoiEA"; const linkEnamad = "https://trustseal.enamad.ir/?id=328131&code=M99rZRi8jPnsb3b7t4Rs"; const linkWhatsappSupport = "https://wa.me/+989136992311"; const linkTelegramSupport = "https://t.me/+989136992311"; const linkTelegramSocial = "https://t.me/safiranahan"; const linkInstagramSocial = "https://instagram.com/safiranahan"; const linkTwitterSocial = "https://twitter.com/safiranahan"; const linkLinkedinSocial = "https://linkedin.com/company/safiranahan"; const linkRedditSocial = "https://reddit.com/r/safiranahan"; const linkPinterestSocial = "https://pinterest.com/safiranahanco/"; const linkEitaaSupport = "https://eitaa.com/safiranahan_support"; const linkEitaaSocial = "https://eitaa.com/safiranahan"; const apiPaths = "https://safiranahan.com/api/v1/"; const apiGetArticleDetail = apiPaths + "getArticleDetail"; const apiGetArticleComments = apiPaths + "getArticleComments"; const apiPostArticleComment = apiPaths + "postArticleComment"; const apiGetArticles = apiPaths + "getArticles"; const apiGetHeaderNews = apiPaths + "getHeaderNews"; const apiGetSheets = apiPaths + "getSheets"; const apiGetRebars = apiPaths + "getRebars"; const apiGetHomeData = apiPaths + "getHomeData"; const apiGetProducts = apiPaths + "getProducts"; const apiGetProductsSkipTake = apiPaths + "getProductsSkipTake"; const apiGetSpecialPrices = apiPaths + "getSpecialPrices"; const apiGetBlogData = apiPaths + "getBlogData"; const apiGetExperts = apiPaths + "getExperts"; const apiPostMessage = apiPaths + "postMessage"; const apiReceiveCode = apiPaths + "user/login/receiveCode"; const apiSendCode = apiPaths + "user/login/sendCode"; let viewport; let dpcm; let spinner; let widthDots, ConfigsZoomStatus; let zoom; let style; const colorless = "#00000000"; const colorHeaderBackground1 = "#15254c"; const colorHeaderBackground11 = "#15254c22"; const colorHeaderBackground3 = "#535f7c"; const colorHeaderBackground4 = "#e0e2e7"; const colorNewsBackground = "#445170"; const color21 = "#e19b1f"; const color22 = "#e19a1e33"; const colorNewsText = "#ffffff"; const colorHeaderText = "#ffffff"; const colorBackground = "#ffffff"; const colorText = "#555555"; const colorHeaderHover = "#ffffff33"; const colorHeaderPress = "#ffffff55"; const colorFooterHover = "#00000011"; const colorFooterPress = "#00000033"; const colorSearchBackground = "#ffffffbb"; const colorWhatsapp = "#1B5E20"; const colorTelegram = "#30b9e6"; const colorEitaa = "#f07c00"; const colorSteelAnalysis1 = "#FF1744"; const colorSteelAnalysis2 = "#FFEBEE"; const colorSteelAnalysis3 = "#FFCDD2"; const colorCryptoAnalysis1 = "#2979FF"; const colorCryptoAnalysis2 = "#E3F2FD"; const colorCryptoAnalysis3 = "#B3E5FC"; const colorCarAnalysis1 = "#43A047"; const colorCarAnalysis2 = "#E8F5E9"; const colorCarAnalysis3 = "#C8E6C9"; const colorRegisterOrder = "#f25119"; const colorInvoiceIssuance = "#47b39c"; const colorWeighingLoading = "#dbc819"; const colorOfficialInvoiceIssuance = "#cf5555"; const colorCheckout = colorCryptoAnalysis1; const colorSendCargo = colorCarAnalysis1; const imgLogo = imagesPath + "logo3.webp"; const imgLogoTitle = imagesPath + "logoTitle3.webp"; const imgMainPage = imagesPath + "mainPageWhite.webp"; const imgPriceList = imagesPath + "priceListWhite.webp"; const imgSpecialPrice = imagesPath + "specialPriceWhite.webp"; const imgNews = imagesPath + "newsWhite.webp"; const imgArticles = imagesPath + "articlesWhite.webp"; const imgAboutUs = imagesPath + "aboutUsWhite.webp"; const imgContactUs = imagesPath + "contactUsWhite.webp"; const imgOurRules = imagesPath + "ourRulesWhite.webp"; const imgSearch = imagesPath + "searchWhite.webp"; const imgPhoneWhite = imagesPath + "phoneWhite.webp"; const imgIranFlag = imagesPath + "iranFlag.webp"; const imgEnglishFlag = imagesPath + "englishFlag.webp"; const imgArabFlag = imagesPath + "arabFlag.webp"; const imgLocation = imagesPath + "locationGray.webp"; const imgPhoneGray = imagesPath + "phoneGray.webp"; const imgWatch = imagesPath + "watchGray.webp"; const imgEnamad = imagesPath + "enamad.webp"; const imgMenu = imagesPath + "menuWhite.webp"; const imgEye = imagesPath + "eyeGray.webp" const imgComment = imagesPath + "commentGray.webp"; const imgPerson = imagesPath + "personGray.webp"; const imgWhatsapp = imagesPath + "whatsappLogo.webp"; const imgTelegram = imagesPath + "telegramLogo.webp"; const imgInstagram = imagesPath + "instagramLogo.webp"; const imgTwitter = imagesPath + "twitterLogoNew.webp"; const imgLinkedin = imagesPath + "linkedinLogo.webp"; const imgReddit = imagesPath + "redditLogo.webp"; const imgPinterest = imagesPath + "pinterestLogo.webp"; const imgEitaa = imagesPath + "eitaaLogo.webp"; const imgWhatsappGray = imagesPath + "whatsappLogoGray.webp"; const imgTelegramGray = imagesPath + "telegramLogoGray.webp"; const imgInstagramGray = imagesPath + "instagramLogoGray.webp"; const imgTwitterGray = imagesPath + "twitterLogoGray.webp"; const imgLinkedinGray = imagesPath + "linkedinLogoGray.webp"; const imgRedditGray = imagesPath + "redditLogoGray.webp"; const imgPinterestGray = imagesPath + "pinterestLogoGray.webp"; const imgEitaaGray = imagesPath + "eitaaLogoGray.webp"; const imgArrowLeft = imagesPath + "arrowLeft.webp"; const imgArrowRight = imagesPath + "arrowRight.webp"; const imgArrowDownGray = imagesPath + "arrowDownGray.webp"; const imgRebarBlack = imagesPath + "rebarBlack.svg"; const imgSheetBlack = imagesPath + "sheetBlack.svg"; const imgProfileBlack = imagesPath + "profileBlack.svg"; const imgGirderBlack = imagesPath + "girderBlack.svg"; const imgPipeBlack = imagesPath + "pipeBlack.svg"; const imgCornerBlack = imagesPath + "cornerBlack.svg"; const imgStudBlack = imagesPath + "studBlack.svg"; const imgWireBlack = imagesPath + "wireBlack.svg"; const imgMarketerBlack = imagesPath + "marketerBlack.webp"; const imgRebarWhite = imagesPath + "rebarWhite.svg"; const imgSheetWhite = imagesPath + "sheetWhite.svg"; const imgProfileWhite = imagesPath + "profileWhite.svg"; const imgGirderWhite = imagesPath + "girderWhite.svg"; const imgPipeWhite = imagesPath + "pipeWhite.svg"; const imgCornerWhite = imagesPath + "cornerWhite.svg"; const imgStudWhite = imagesPath + "studWhite.svg"; const imgWireWhite = imagesPath + "wireWhite.svg"; const imgMarketerWhite = imagesPath + "marketerWhite.webp"; const imgRebarYellow = imagesPath + "rebarYellow.svg"; const imgSheetYellow = imagesPath + "sheetYellow.svg"; const imgProfileYellow = imagesPath + "profileYellow.svg"; const imgGirderYellow = imagesPath + "girderYellow.svg"; const imgPipeYellow = imagesPath + "pipeYellow.svg"; const imgCornerYellow = imagesPath + "cornerYellow.svg"; const imgStudYellow = imagesPath + "studYellow.svg"; const imgWireYellow = imagesPath + "wireYellow.svg"; const imgRegisterOrder = imagesPath + "registerOrder.webp"; const imgInvoiceIssuance = imagesPath + "invoiceIssuance.webp"; const imgWeighingLoading = imagesPath + "weighingLoading.webp"; const imgOfficialInvoiceIssuance = imagesPath + "officialInvoiceIssuance.webp"; const imgCheckout = imagesPath + "checkout.webp"; const imgSendCargo = imagesPath + "sendCargo.webp"; const imgAboutUsDescription = imagesPath + "aboutUs2.webp"; const imgPhoneYellow = imagesPath + "phoneYellow.webp"; const imgMobileYellow = imagesPath + "mobileYellow.webp"; const imgScientificSheet = imagesPath + "scientificSheet.webp"; const imgScientificRebar = imagesPath + "scientificRebar.webp"; const imgScientificGirder = imagesPath + "scientificGirder.webp"; const imgScientificProfile = imagesPath + "scientificProfile.webp"; const imgScientificPipe = imagesPath + "scientificPipe.webp"; const imgScientificCorner = imagesPath + "scientificCorner.webp"; const imgScientificStud = imagesPath + "scientificStud.webp"; const imgScientificWire = imagesPath + "scientificWire.webp"; const imgScientificSheetBlack = imagesPath + "scientificSheetBlack.webp"; const imgScientificSheetColor = imagesPath + "scientificSheetColor.webp"; const imgScientificSheetOil = imagesPath + "scientificSheetOil.webp"; const imgScientificSheetGalvanized = imagesPath + "scientificSheetGalvanized.webp"; const imgScientificSheetChequer = imagesPath + "scientificSheetChequer.webp"; const imgScientificSheetSteel = imagesPath + "scientificSheetSteel.webp"; const imgScientificSheetAcidWash = imagesPath + "scientificSheetAcidWash.webp"; const imgScientificSheetAluminium = imagesPath + "scientificSheetAluminium.webp"; const imgScientificSheetAlloy = imagesPath + "scientificSheetAlloy.webp"; const imgScientificRebarChequer = imagesPath + "scientificRebarChequer.webp"; const imgScientificRebarSimple = imagesPath + "scientificRebarSimple.webp"; const imgScientificRebarSimpleCoil = imagesPath + "scientificRebarSimpleCoil.webp"; const imgScientificRebarChequerCoil = imagesPath + "scientificRebarChequerCoil.webp"; const imgScientificGirderIPE = imagesPath + "scientificGirderIPE.webp"; const imgScientificGirderBee = imagesPath + "scientificGirderBee.webp"; const imgScientificGirderHeavy = imagesPath + "scientificGirderHeavy.webp"; const imgScientificGirderLightHash = imagesPath + "scientificGirderLightHash.webp"; const imgScientificGirderHeavyHash = imagesPath + "scientificGirderHeavyHash.webp"; const imgScientificProfileStructural = imagesPath + "scientificProfileStructural.webp"; const imgScientificProfileIndustrial = imagesPath + "scientificProfileIndustrial.webp"; const imgScientificProfileZ = imagesPath + "scientificProfileZ.webp"; const imgScientificProfileColumn = imagesPath + "scientificProfileColumn.webp"; const imgScientificProfileFurniture = imagesPath + "scientificProfileFurniture.webp"; const imgScientificPipeIndustrial = imagesPath + "scientificPipeIndustrial.webp"; const imgScientificPipeGasDelivery = imagesPath + "scientificPipeGasDelivery.webp"; const imgScientificPipeScaffold = imagesPath + "scientificPipeScaffold.webp"; const imgScientificPipeManisman = imagesPath + "scientificPipeManisman.webp"; const imgScientificPipeFurniture = imagesPath + "scientificPipeFurniture.webp"; const imgScientificCornerCorner = imagesPath + "scientificCornerCorner.webp"; const imgScientificStudStud = imagesPath + "scientificStudStud.webp"; const imgCompany1 = imagesPath + "company1.webp"; const imgInfo = imagesPath + "infoGray.webp"; const imgCalc = imagesPath + "calculatorGray.webp"; const imgCalcWhite = imagesPath + "calculatorWhite.webp"; const imgArrowDownWhite = imagesPath + "arrowDownWhite.svg"; const imgCategoryWhite = imagesPath + 'categoryWhite.webp'; const fontface1 = fontsPath + "yekan_light.woff2"; const fontface2 = fontsPath + "iransans_light.woff2"; const sizeText0 = "0.2cm"; const sizeText1 = "0.3cm"; const sizeHeaderText = "0.4cm"; const sizeFooterText = "0.8cm"; const sizeText2 = "0.6cm"; const headerWidthNumeric = 33; const headerWidth = headerWidthNumeric + "cm"; var windowWidthCm = 0, windowHeightCm = 0; const FA = 0, EN = 1, AR = 2; var language = FA; function setLanguage(newLanguage) { language = newLanguage; localStorage["language"] = language; } const strPhone1 = ["۰۳۱-۹۱۰۰۱۰۴۰", "031-91001040", "۰۳۱-۹۱۰۰۱۰۴۰"]; const strPhone2 = ["۰۳۱-۳۷۱۳۰", "031-37130", "۰۳۱-۳۷۱۳۰"]; const strTitle = ["سفیران آهن زاینده رود", "Safiran Ahan Zayanderood", "سفیران آهن زاینده رود"]; const strMainPage = ["صفحه اصلی", "Main page", "الصفحة الرئيسية"]; const strPriceList = ["لیست قیمت", "Price list", "قائمة الاسعار"]; const strSpecialPrice = ["فروش ویژه", "Special price", "بيع خاص"]; const strNews = ["اخبار بازار آهن", "News", "أخبار"]; const strBlog = ["وبلاگ", "Blog", "مدونة"]; const strAboutUs = ["درباره ما", "About us", "معلومات عنا"]; const strAboutSafiranAhan = ["درباره سفیران آهن زاینده رود", "About Safiran Ahan Zayandehrood", "حول سفیران آهن زاینده رود"]; const strContactUs = ["ارتباط با ما", "Contact us", "اتصل بنا"]; const strContactSafiranAhan = ["ارتباط با سفیران آهن زاینده رود", "Contact with Safiran Ahan Zayandehrood", "التواصل مع سفیران آهن زاینده رود"]; const strOurRules = ["قوانین ما", "Our rules", "قوانينا"]; const strRulesSafiranAhan = ["قوانین سفیران آهن زاینده رود", "Rules of Safiran Ahan Zayandehrood", "قواعد سفیران آهن زاینده رود"]; const strSearchProduct = ["جستجوی محصول یا کارخانه ...", "Search product ...", "البحث عن المنتج ..."]; const strSearch = ["جستجو ...", "Search ...", "بحث"]; const strAddressFooter = ["آدرس: اصفهان، خیابان امام خمینی، خیابان خلیفه سلطانی، ساختمان کوروش، طبقه اول", "Address: Isfahan, Imam Khomeini St., Khalifa Soltani St., Kurosh Building, 1st floor", "العنوان: أصفهان ، شارع الإمام الخميني ، شارع خليفة سلطاني ، بناية كوروش ، الطابق الأول"]; const strPhoneFooter = ["تلفن تماس: ۹۱۰۰۱۰۴۰-۰۳۱", "Phone: 031-91001040", "رقم التليفون: ۹۱۰۰۱۰۴۰-۰۳۱"]; const strWorkTimeFooter = ["ساعت کاری: ۸:۰۰ الی ۱۷:۰۰", "Working hours: 8:30 to 17:30", "ساعات العمل: ۸:۳۰ إلى ۱۷:۳۰"]; const strIronMarket = ["تحلیل بازار آهن", "Iron market analysis", "تحليل سوق الحديد"]; const strCarMarket = ["تحلیل بازار خودرو", "Car market analysis", "تحليل سوق السيارات"]; const strCurrencyMarket = ["تحلیل بازار ارز", "Currency market analysis", "تحليل سوق العملات"]; const strDailyIronMarket = ["تحلیل روزانه بازار آهن", "Iron market daily analysis", "تحليل سوق الحديد"]; const strDailyCarMarket = ["تحلیل روزانه بازار خودرو", "Car market daily analysis", "تحليل سوق السيارات"]; const strDailyCurrencyMarket = ["تحلیل روزانه بازار ارز", "Currency market daily analysis", "تحليل سوق العملات"]; const strContactSaleTeam = ["ارتباط با تیم فروش", "Contact with sale team", "التواصل مع فريق المبيعات"]; const strFastAccess = ["دسترسی سریع", "Fast access", "وصول سريع"]; const strConfidence = ["نماد اطمینان", "Confidence symbol", "رمز الثقة"]; const strRegLogin = ["ورود | ثبت نام", "Login | Register", "دخول | اشتراك"]; const strSeconds = [" ثانیه", " seocnds", " ثواني"]; const strMinutes = [" دقیقه", " minutes", " دقائق"]; const strHours = [" ساعت" ,"hours", " ساعات"]; const strDays = [" روز", " days", " أيام"]; const strWeeks = [" هفته", " weeks", " أسابيع"]; const strMonths = [" ماه", " months", " شهور"]; const strYears = [" سال", " years", " سنين"]; const strCenturies = [" قرن", " centuries", " قرون"]; const strAgo = ["پیش", "ago", "منذ"]; const strReadingDuration = ["مدت مطالعه", "reading duration", "مدة القراءة"]; const strVisits = ["بازدید", "visits", "الزيارات"]; const strComments = ["نظر", "comment", "تعليقات"]; const strPublishTime = ["تاریخ انتشار", "Publish time", "وقت النشر"]; const strSentBy = ["ارسال شده توسط ", "Sent by ", "أرسلها "]; const strUsersComment = ["نظرات کاربران", "Users comment", "تعليق المستخدمين"]; const strSendComment = ["ارسال نظر", "Send comment", "إرسال تعليق"]; const strSendMessage = ["ارسال پیام", "Send message", "أرسل رسالة"]; const strEnterComment = ["نظر خود را وارد کنید *", "Enter your comment *", "أدخل تعليقك *"]; const strEnterText = ["پیام خود را وارد کنید *", "Enter your Message *", "أدخل رسالتك *"] const strNameFamily = ["نام و نام خانوادگی", "First and last name", "الاسم الأول واسم العائلة"]; const strEmailAddress = ["آدرس ایمیل", "Email address", "عنوان البريد الإلكتروني"]; const strErrEnterComment = ["لطفاً ابتدا نظر خود را وارد نمائید", "Please enter your comment first", "الرجاء إدخال تعليقك أولا"]; const strCommentApply = ["نظر شما ثبت و پس از تأیید مدیر نمایش داده خواهد شد"]; const strMessageApply = ["پیام شما ارسال شد.\nدرصورت نیاز به آدرس ایمیلی که وارد کردید پاسخ داده میشود.", +"Your message has been sent.\nIf needed, the email address you entered will be answered.", "تم ارسال رسالتك.\n" + "إذا لزم الأمر ، سيتم الرد على عنوان البريد الإلكتروني الذي أدخلته."]; const strErrCommentApply = ["نظر شما ارسال نشد. لطفا بعداً تلاش کنید", "Your comment didn't send. Please try again later", "تعليقك لم يرسل. الرجاء معاودة المحاولة في وقت لاحق"]; const strUnknown = ["ناشناس", "Unknown", "مجهول"]; const strErrServerConnection = ["ارتباط با سرور برقرار نشد", "Server connection failure", "فشل اتصال الخادم"]; const strWhatsappSupport = ["پشتیبانی واتساپ", "Whatsapp support", "دعم واتساب"]; const strTelegramSupport = ["پشتیبانی تلگرام", "Telegram support", "دعم تلگرام"]; const strEitaaSupport = ["پشتیبانی ایتا", "Eitaa support", "دعم ایتا"]; const strFollowUs = ["سفیران آهن در شبکه های اجتماعی", "Safiran ahan in social platforms", "سفیران آهن في المنصات الاجتماعية"]; const strRightsReserved = ["کلیه حقوق نزد شرکت سفیران آهن زاینده رود محفوظ است.", "All rights reserved for Safiran Ahan Zayanderood Co.", "جميع الحقوق محفوظة مؤسَّسة سفیران آهن زاینده رود."]; const strITTeam = ["طراحی شده توسط تیم IT سفیران آهن", "Designed by Safiran Ahan IT Team", "صمم بواسطة فریق IT سفیران آهن"]; const strSheet = ["ورق", "Sheet", "ملزمة"]; const strRebar = ["میلگرد", "Rebar", "حديد التسليح"]; const strProfile = ["پروفیل", "Profile", "حساب تعريفي"]; const strGirder = ["تیرآهن", "Girder", "عارضة"]; const strPipe = ["لوله", "Pipe", "يضخ"]; const strCorner = ["نبشی", "Corner", "ركن"]; const strStud = ["ناودانی", "Stud", "عشيق"]; const strWire = ["مفتولی", "Wire", "الأسلاك"]; const strBlackSheet = ["ورق سیاه", "Black sheet", "ورقة سوداء"]; const strColorSheet = ["ورق رنگی", "Color sheet", "ورقة ملونة"]; const strOilSheet = ["ورق روغنی", "Oil sheet", "ورقة زيت"]; const strGalvanizedSheet = ["ورق گالوانیزه", "Galvanized sheet", "ورقة مجلفنة"]; const strChequerSheet = ["ورق آجدار", "Chequer sheet", "ورقة المدقق"]; const strSteelSheet = ["ورق استیل", "Steel sheet", "صفائح من الفولاذ"]; const strAcidWashSheet = ["ورق اسیدشوئی", "Acid wash sheet", "ورقة غسيل حمض"]; const strAluminiumSheet = ["ورق آلومینیوم", "Aluminium sheet", "ورقة الألمنيوم"]; const strAlloySheet = ["ورق آلیاژی", "Alloy sheet", "ورقة سبيكة"]; const strChequerRebar = ["میلگرد آجدار", "Chequer rebar", "المدقق حديد التسليح"]; const strSimpleRebar = ["میلگرد ساده", "Simple rebar", "حديد التسليح بسيط"]; const strSimpleCoilRebar = ["میلگرد کلاف ساده", "Simple coiled rebar", "ملفوف حديد التسليح"]; const strChequerCoilRebar = ["میلگرد کلاف آجدار", "Chequer coiled rebar", "المدقق حديد التسليح"]; const strIPEGirder = ["تیرآهن IPE", "IPE girder", "عارضة IPE"]; const strBeeGirder = ["تیرآهن زنبوری", "Bee girder", "عارضة النحل"]; const strHeavyGirder = ["تیرآهن سنگین", "Heavy girder", "عارضة ثقيلة"]; const strLightHashGirder = ["تیرآهن هاش سبک", "Light hash girder", "عارضة التجزئة الخفيفة"]; const strHeavyHashGirder = ["تیرآهن هاش سنگین", "Heavy hash girder", "عارضة تجزئة ثقيلة"]; const strStructuralProfile = ["پروفیل ساختمانی", "Structural profile", "الملف الهيكلي"]; const strIndustrialProfile = ["پروفیل صنعتی", "Industrial profile", "الملف الصناعي"]; const strZProfile = ["پروفیل Z", "Z profile", "الملف الشخصي Z"]; const strColumnProfile = ["پروفیل ستونی", "Column profile", "ملف تعريف العمود"]; const strFurnitureProfile = ["پروفیل مبلی", "Furniture profile", "الملف الشخصي للأثاث"]; const strIndustrialPipe = ["لوله صنعتی", "Industrial pipe", "الأنابيب الصناعية"]; const strGasDeliveryPipe = ["لوله گازرسانی", "Gas delivery pipe", "أنبوب توصيل الغاز"]; const strScaffoldPipe = ["لوله داربست", "Scaffold pipe", "أنبوب سقالة"]; const strManismanPipe = ["لوله مانیسمان", "Manisman pipe", "أنابيب مانيسمان"]; const strFurniturePipe = ["لوله مبلی", "Furniture pipe", "أنابيب الأثاث"]; const strBarbedWire = ["مفتولی خاردار", "Barbed wire", "سلك شائك"]; const strFenceWire = ["مفتولی فنس", "Fence wire", "سلك السياج"]; const strMeshWire = ["مفتولی مش", "Mesh wire", "شبكة أسلاك"]; const strLaceWire = ["مفتولی توری", "Lace wire", "سلك الدانتيل"]; const strFencePostWire = ["مفتولی تیرحصار", "Fence post wire", "سلك آخر السياج"]; const strWiredWire = ["سیم مفتولی", "Wired wire", "سلك سلكي"]; const strDailyAnalysis = ["تحلیل روزانه بازار", "Market daily analysis", "تحليل السوق اليومي"]; const strExperts = ["کارشناسان فروش", "Sale experts", "خبراء المبيعات"]; const strSheetsType = ["انواع ورق", "Types of sheets", "أنواع الأوراق"]; const strRebarGirder = ["میلگرد
تیرآهن", "Rebar
Girder", "حدید التسلیح
عارضة"]; const strMarketer = ["بازاریاب", "Marketer", "المسوق"]; const strProfilePipeCornerStud = ["قوطی و پروفیل
نبشی و ناودانی
لوله", "Can & Profile
Corner & Stud
Pipe", "يمكن والملف الشخصي
الزاوية والمسمار
الأنابيب"] const strExpert = ["کارشناس", "Expert", "خبراء"]; const strInternal = ["داخلی", "internal", "داخلي"]; const strBuyProcedure = ["روند خرید از ما", "Buy procedure", "إجراء الشراء"]; const strRegisterOrder = ["ثبت سفارش", "Register order", "تسجيل الطلب"]; const strInvoiceIssuance = ["صدور پیش فاکتور", "Invoice issuance", "إصدار الفاتورة"]; const strWeighingLoading = ["باسکول و بارگیری", "Weighing and loading", "وزنها وتحميلها"]; const strOfficialInvoiceIssuance = ["صدور فاکتور رسمی", "Official invoice issuance", "إصدارفاتورةرسمية"]; const strCheckout = ["تسویه حساب", "Checkout", "الدفع"]; const strSendCargo = ["ارسال بار", "Send cargo", "إرسال البضائع"]; const strFAQS = ["سؤالات متداول", "FAQ", "التعليمات"]; const strRegisterOrderBody = [ "برقراری تماس با تیم فروش ما و استعلام قیمت و ثبت درخواست مشتری توسط تیم صورت می پذیرد", "Making contact with our sales team and asking the price and registering the customer's request is done by the team", "يتم الاتصال بفريق المبيعات لدينا والاستفسار عن السعر وتسجيل طلب العميل من قبل الفريق"]; const strInvoiceIssuanceBody = [ "با توجه به وزن درخواستی مشتری و قیمت توافقی، پیش فاکتور برای مشتری صادر می گردد", "According to the weight requested by the customer and the agreed price, a proforma invoice is issued to the customer", "وفقًا للوزن الذي يطلبه العميل والسعر المتفق عليه ، يتم إصدار فاتورة أولية للعميل"]; const strWeighingLoadingBody = ["محصول از لحاظ کیفی بررسی، باسکول و بارگیری می شود", "The product is qualitatively checked, weighed and loaded", "يتم فحص المنتج ووزنه وتحميله نوعياً"]; const strOfficialInvoiceIssuanceBody = ["فاکتور نهایی با توجه به قبض باسکول و محاسبه دقیق برای مشتری ارسال می گردد", "The final invoice is sent to the customer according to the weighing bill and accurate calculation", "يتم إرسال الفاتورة النهائية للعميل حسب فاتورة الوزن والحساب الدقيق"]; const strCheckoutBody = ["تسویه حساب فاکتور صادر شده در مرحله قبل، توسط مشتری انجام می پذیرد", "The settlement of the invoice issued in the previous step is done by the customer", "يتم تسوية الفاتورة الصادرة في الخطوة السابقة بواسطة العميل"]; const strSendCargoBody = ["محصول برای مشتری با کنترل کیفی ارسال می گردد", "The product is sent to the customer with quality control", "يتم إرسال المنتج إلى العميل مع مراقبة الجودة"]; const strSeeAll = ["مشاهده همه", "See all", "مشاهدة الكل"]; const strLatestContents = ["آخرین مطالب", "Latest contents", "أحدث المحتويات"]; const strLatestArticles = ["آخرین مقالات", "Latest articles", "أحدث المقالات"]; const strSuggested = ["مقالات عمومی بازار آهن", "General articles of the iron market", "مقالات عامة عن سوق الحديد"]; const strDescription1 = ["سفیران آهن زاینده رود با بیش از یک دهه فعالیت، فروش و عرضه آهن آلات، تأمین قطعات فولادی، آلیاژی و استیل را در کارنامه خود دارد.", "Safiran Ahan Zayanderood has more than a decade of activity, sales and supply of irons, supply of steel, alloy and steel parts in its portfolio.", "تمتلك سفیران آهن زاینده رود أكثر من عقد من النشاط والمبيعات وتوريد الحديد وتوريد الصلب والسبائك وقطع الصلب في محفظتها."]; const strDescription2 = ["هدف اصلی مجموعه سفیران آهن، بهبود عملکرد خرید و فروش مقاطع فولادی و آلیاژی و استیل برای تمام مشتریان عزیز است که با بهترین مشاوره، کنترل کیفی محصول، بارگیری صحیح و استاندارد، حمل و نقل سریع و آسان، پشتیبانی کامل و جامع از مرحله ثبت سفارش تا تسویه و تحویل بار به مشتری، فرآیند فروش نوینی را تدوین و اجرا می کند. هدف این مجموعه ارائه سود مناسب و مدیریت زمان برای شما مشتریان عزیز می باشد.", "The main goal of the Safiran Ahan collection is to improve the buying and selling performance of steel, alloy and steel sections for all dear customers with the best advice, product quality control, correct and standard loading, fast and easy transportation, full and comprehensive support from the stage It develops and implements a new sales process from order registration to settlement and delivery to the customer. The purpose of this collection is to provide reasonable profit and time management for you dear customers.", "الهدف الرئيسي من مجموعة سفیران آهن هو تحسين أداء البيع والشراء لأقسام الصلب والسبائك والصلب لجميع العملاء الأعزاء مع أفضل النصائح ومراقبة جودة المنتج والتحميل الصحيح والقياسي والنقل السريع والسهل والدعم الكامل والشامل من المرحلة يطور وينفذ عملية مبيعات جديدة من تسجيل الطلب إلى التسوية والتسليم إلى العميل. الغرض من هذه المجموعة هو توفير ربح معقول وإدارة الوقت لعملائك الأعزاء." ]; const strProducers = ["تولیدکنندگان برتر", "Top producers", "كبار المنتجين"]; const strScientificArticles = ["دسته‌بندی مقالات علمی", "Scientific articles", "مقالات علمية"]; const strEnterMobile = ["شماره موبایل خود را وارد نمائید:", "Enter your mobile number:", "أدخل رقم هاتفك المحمول:"]; const strMobileExample = ["مثال: ۰۹١۲۳۴۵۶۷۸۹", "Example: 09123456789", "مثال: ۰۹١۲۳۴۵۶۷۸۹"]; const strCodeExample = ["مثال: ١۲۳۴۵۶", "", "Example: 123456", "مثال: ١۲۳۴۵۶"]; const strReceiveVerifyCode = ["دریافت کد تأیید", "Receive verify code", "تلقي رمز التحقق"]; const strSendVerifyCode = ["ارسال کد تأیید", "Send verify code", "إرسال رمز التحقق"]; const strSmsSentAlready = ["کد تأیید قبلاً برای شما ارسال شده است", "Verify code sent to you already", "تحقق من الرمز المرسل لك بالفعل"]; const strMobileEnteredFalse = ["شماره موبایل وارد شده نادرست است", "Entered mobile number is invalid", "رقم الهاتف المحمول الذي تم إدخاله غير صالح"]; const strCodeEnteredFalse = ["کد تأیید وارد شده نادرست است", "Entered Verify code is invalid", "أدخل رمز التحقق غير صالح"]; const strNoLoginCode = ["کد تأیید برای شما ارسال نشده است", "Verify code didn't send to you", "تحقق من عدم إرسال رمز إليك"]; const strExpiredCode = ["کد تأیید منقضی شده است", "Verify code expired", "انتهت صلاحية رمز التحقق"]; const strTryLimit = ["بیش از ۵ مرتبه تلاش کردید", "You tried more than 5 times", "لقد حاولت أكثر من ۵ مرات"]; const strIncorrectCode = ["کد تأیید نادرست است", "Verify code is incorrect", "تحقق من الرمز غير صحيح"]; const strMyProfile = ["خروج از حساب", "Exit account", "حساب الخروج"]; const strPleaseWait = ["صبر کنید", "Please wait", "انتظر"]; const strYouShouldLogin = ["جهت ثبت سفارش، وارد حساب کاربری خود شوید"]; const strGold = ["طلا", "Gold", "ذهب"]; const strDollar = ["دلار", "Dollar", "دولار"]; const strBitcoin = ["بیتکوین", "Bitcoin", "بيتكوين"]; const strIRT = ["تومان", "IRT", "تومان"]; const strBourse = ["شاخص بورس", "Bourse", "تبادل"]; const strSekeb = ["تمام سکه", "whole coin", "عملة كاملة"]; const strNim = ["نیم سکه", "half coin", "نصف عملة"]; const strRob = ["ربع سکه", "Quarter coins", "عملات معدنية ربع"]; const strTether = ["تتر", "Tether", "حبل"]; const strEur = ["یورو", "Euro", "اليورو"]; const strIRR = ["ریال", "IRR", "الريال"]; const strShowWithTax = ['نمایش قیمت با ارزش افزوده', 'Display price with added value', 'عرض السعر مع القيمة المضافة']; const strCalcWeight = ["محاسبه وزن", "Calculate weight", "احسب الوزن"]; const strDiameter = ["قطر", 'Diameter', 'قطر']; const strSize = ["سایز", "Size", "سایز"]; const strLength = ["طول", "Length", "الطول"]; const strWidth = ['عرض', 'width', 'عرض']; const strCount = ["تعداد", "Count", "رقم"]; const strKilogram = ["کیلوگرم", "Kilogram", "كلغ"]; const strDimensions = ['ابعاد', 'Dimensions', 'أبعاد']; const strThickness = ['ضخامت', 'Thickness', 'سماكة']; const strTypes = ['انواع', 'Types', 'انواع']; const strCategory = ['دسته بندی', 'Category', 'فئة']; const strPrice = ['قیمت', "Price", 'سعر']; function str(text) { return text[language]; } function htmlDir() { return document.getElementById("html").dir; } function setDirMargin(target) { if (htmlDir() === "rtl") { target.style.marginLeft = "auto"; } else { target.style.marginRight = "auto"; } } function createA(href, title) { var a = document.createElement("a"); if (href !== "") { a.href = href; } a.style.backgroundColor = colorless; if (title !== null) { a.title = title; } a.style.cursor = "pointer"; a.style.textDecoration = "none"; return a; } function createDiv() { var div = document.createElement("div"); div.style.backgroundColor = colorless; div.style.display = "flex"; div.style.alignItems = "center"; div.style.justifyContent = "center"; div.style.margin = "0px"; return div; } function createP(text) { var p = document.createElement("p"); p.style.display = "inline-block"; p.innerHTML = text; p.style.margin = "0px"; p.style.color = colorText; p.style.backgroundColor = colorless; p.style.fontFamily = "fontface1"; return p; } function createPTitle(text) { const divTitle = createDiv(); divTitle.style.flexDirection = "row"; divTitle.style.width = "100%"; const pTitle = createP(text); pTitle.style.whiteSpace = "nowrap"; pTitle.style.fontSize = sizeText2; pTitle.style.fontWeight = "bold"; pTitle.style.color = colorText; pTitle.style.marginInlineEnd = "0.5cm"; divTitle.appendChild(pTitle); const divLine = createDiv(); divLine.style.width = "100%"; divLine.style.height = "3px"; divLine.style.marginTop = divLine.style.marginBottom = "auto"; divLine.style.backgroundColor = colorText; divTitle.appendChild(divLine); return divTitle; } function createHTitle(h, text) { const divTitle = createDiv(); divTitle.style.flexDirection = "row"; divTitle.style.width = "100%"; const hTitle = document.createElement(h); hTitle.innerHTML = text; hTitle.style.whiteSpace = "nowrap"; hTitle.style.fontSize = sizeText2; hTitle.style.fontWeight = "bold"; hTitle.style.color = colorText; hTitle.style.marginInlineEnd = "0.5cm"; hTitle.style.fontFamily = "fontface1"; divTitle.appendChild(hTitle); const divLine = createDiv(); divLine.style.width = "100%"; divLine.style.height = "3px"; divLine.style.marginTop = divLine.style.marginBottom = "auto"; divLine.style.backgroundColor = colorText; divTitle.appendChild(divLine); return divTitle; } function createSpinner() { const spinner = document.createElement("div"); spinner.style.border = "0.25cm solid #eeeeee"; spinner.style.borderTop = "0.25cm solid " + colorHeaderBackground1; spinner.style.borderRadius = "50%"; spinner.style.width = "1cm"; spinner.style.height = "1cm"; spinner.style.animation = "spin 1s linear infinite"; spinner.style.webkitAnimation = "spin 1s linear infinite"; return spinner; } function getDeviceType() { if (navigator.userAgent.match(/Tablet|iPad|Mobile|Windows Phone|Lumia|Android|webOS|iPhone|iPod|Blackberry|PlayBook|BB10|Opera Mini|\bCrMo\/|Opera Mobi/i)) { return "mobile"; } else { return "desktop"; } } function isMobileDesktopMode() { var webkitVer = parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.appVersion)[1], 10); var isGoogle = webkitVer && navigator.vendor.indexOf('Google') === 0; var isAndroid = isGoogle && navigator.userAgent.indexOf('Android') > 0; return !isAndroid && isGoogle && (navigator.platform.indexOf('Linux a') === 0) && 'ontouchstart' in document.documentElement; } function isZoom() { if (getDeviceType() === "mobile" || (!isMobileDesktopMode() && window.innerWidth < widthDots)) { return true; } else if (getDeviceType === "desktop" && (isMobileDesktopMode || window.innerWidth >= widthDots)) { return false; } } const persianDigits = ["۰", "۱", "۲", "۳", "۴", "۵", "۶", "۷", "۸", "۹"]; function getPersianDigit(digit) { if (digit !== null && typeof digit !== 'undefined' && digit.length > 0) { var output = ""; digit = digit.toString(); var digitsCount = digit.length; for (let i = 0; i < digitsCount; i++) { if (digit.charAt(i) >= "0" && digit.charAt(i) <= "9") { output += persianDigits[parseInt(digit.charAt(i))]; } else { output += digit.charAt(i); } } return output; } else { return digit; } } function getOnlyDigits(text) { if (text !== null && typeof text !== 'undefined' && text.length > 0) { let output = ""; text = text.toString(); let textCount = text.length; for (let i = 0; i < textCount; i++) { if ((text.charAt(i) >= "0" && text.charAt(i) <= "9") || (persianDigits.indexOf(text.charAt(i)) !== -1)) { output += text.charAt(i); } } return output; } else { return text; } } function getEnglishDigit(digit) { if (digit !== null && typeof digit !== 'undefined' && digit.length > 0) { let output = ""; digit = digit.toString(); let digitsCount = digit.length; for (let i = 0; i < digitsCount; i++) { const index = persianDigits.indexOf(digit.charAt(i)); if (index === -1) { output += digit.charAt(i); } else { output += index; } } return output; } else { return digit; } } function getSplitterDigit(digit) { let output = ""; let index; digit = digit.toString(); while (digit.length > 3) { index = digit.length - 3; output = ("," + digit.substring(index)) + output; digit = digit.substring(0, index); } output = digit + output; return output; } function getPersianSplitterDigit(digit) { return getSplitterDigit(getPersianDigit(digit)); } function decodeUrlSearch(urlSearch) { let output = []; if (urlSearch !== null && typeof urlSearch !== 'undefined' && urlSearch.length > 1) { urlSearch = urlSearch.substring(1); let splitted = urlSearch.split("&"); for (let i = 0; i < splitted.length; i++) { const equalIndex = splitted[i].indexOf("="); output[splitted[i].substring(0, equalIndex)] = splitted[i].substring(equalIndex + 1); } } return output; } function encodeUrlSearch(urlSearch) { let output = "?"; if (urlSearch !== null && typeof urlSearch !== 'undefined') { const keys = Object.keys(urlSearch); for (let i = 0; i < keys.length; i++) { output += keys[i] + "=" + urlSearch[keys[i]]; if (i < keys.length - 1) { output += "&"; } } } return output; } function getElapsedTime(unixTime) { elapsedTime = ""; if (unixTime < 60) { elapsedTime = Math.floor(unixTime) + str(strSeconds); } else if (unixTime < 3600) { elapsedTime = Math.floor(unixTime / 60) + str(strMinutes); } else if (unixTime < 86400) { elapsedTime = Math.floor(unixTime / 3600) + str(strHours); } else if (unixTime < 604800) { elapsedTime = Math.floor(unixTime / 86400) + str(strDays); } else if (unixTime < 2592000) { elapsedTime = Math.floor(unixTime / 604800) + str(strWeeks); } else if (unixTime < 31104000) { elapsedTime = Math.floor(unixTime / 2592000) + str(strMonths); } else if (unixTime < 3110400000) { elapsedTime = Math.floor(unixTime / 31104000) + str(strYears); } else { elapsedTime = Math.floor(unixTime / 3110400000) + str(strCenturies); } elapsedTime = language === FA || language === AR ? getPersianDigit(elapsedTime) : elapsedTime; return elapsedTime; } function createOpenCloseDiv(content, divId) { const closeHeight = "2cm"; const divOpenClose = createDiv(); divOpenClose.style.flexDirection = "column"; divOpenClose.style.padding = "0cm"; const divGuide1 = createDiv(); divGuide1.style.overflow = "hidden"; divGuide1.style.height = closeHeight; divGuide1.style.backgroundColor = "#0051FF06"; divGuide1.style.boxShadow = "2px 2px 7px #00000033"; divGuide1.style.borderRadius = "0.25cm"; divGuide1.style.paddingRight = divGuide1.style.paddingLeft = "0.7cm"; divGuide1.style.paddingTop = "0cm"; divGuide1.style.transition = "1s"; divOpenClose.appendChild(divGuide1); divOpenClose.divGuide1 = divGuide1; const divGuide2 = createDiv(); divGuide2.style.flexDirection = "column"; divGuide2.style.marginTop = "auto"; divGuide2.style.paddingBottom = "3cm"; divGuide2.innerHTML = content.substring(content.indexOf(divId) - 10, content.indexOf(divId + "End") - 6); divGuide1.appendChild(divGuide2); const pGuideMore = new PImg("", imgArrowDownGray, ""); pGuideMore.p.style.margin = "0cm"; pGuideMore.style.padding = "0.5cm"; pGuideMore.style.position = "absolute"; // pGuideMore.style.paddingRight = pGuideMore.style.paddingLeft = "0.5cm"; pGuideMore.style.fontWeight = "bold"; pGuideMore.style.fontFamily = "fontface1"; pGuideMore.style.borderRadius = "1000px"; pGuideMore.style.marginBottom = "0cm"; pGuideMore.style.transition = "1s"; pGuideMore.img.style.transition = "0.5s"; pGuideMore.setTextSize("0.5cm"); pGuideMore.setAlt("مطالعه-بیشتر"); setHoverPointer(pGuideMore); setHoverAnimation2(pGuideMore, "#0051FF11", "#0051FF33"); pGuideMore.addEventListener("click", function () { if (divGuide1.style.height === closeHeight) { divGuide1.style.height = divGuide2.clientHeight / dpcm + "cm"; pGuideMore.img.style.transform = "rotate(180deg)"; pGuideMore.style.marginBottom = divGuide2.clientHeight / dpcm - 2 + "cm"; pGuideMore.p.innerHTML = ""; } else { divGuide1.style.height = closeHeight; pGuideMore.img.style.transform = "rotate(0deg)"; pGuideMore.style.marginBottom = "0cm"; pGuideMore.p.innerHTML = ""; } }); divOpenClose.appendChild(pGuideMore); divOpenClose.pGuideMore = pGuideMore; window.addEventListener("resize", function(event) { if (zoom) { pGuideMore.style.marginLeft = -windowWidthCm * 0.92 + 2 + "cm"; } else { pGuideMore.style.marginLeft = -headerWidthNumeric + 3 + "cm"; } }); if (zoom) { pGuideMore.style.marginLeft = -windowWidthCm * 0.92 + 2 + "cm"; } else { pGuideMore.style.marginLeft = -headerWidthNumeric + 3 + "cm"; } return divOpenClose; } function setBacklink() { const script1 = document.createElement("script"); script1.type = "application/ld+json"; script1.innerHTML = '{\n' + '"@context" : "https://schema.org",\n' + '"@type" : "Organization",\n' + '"name" : "safiranahan",\n' + '"url" : "https://www.safiranahan.com",\n' + '"logo": "https://www.safiranahan.com/storage/app/public/image/logo3.webp",\n' + '"sameAs" : [\n' + '"https://www.instagram.com/safiranahan",\n' + '"https://www.linkedin.com/company/safiranahan",\n' + '"https://www.twitter.com/safiranahan",\n' + '"https://www.aparat.com/safiranahan",\n' + '"https://www.youtube.com/@safiranahan",\n' + '"https://www.pinterest.com/safiranahanco",\n' + '"https://www.telegram.me/safiranahan",\n' + '"https://www.reddit.com/r/safiranahan",\n' + '"https://www.eitaa.com/safiranahan"\n' + ']\n' + '}\n'; document.head.appendChild(script1); } function config() { config2('index', 'follow'); } function config2(index, follow) { customElements.define("p-img-link", PImgLink, {extends: "a"}); customElements.define("p-link", PLink, {extends: "a"}); customElements.define("p-img", PImg, {extends: "div"}); customElements.define("p-click", PClick, {extends: "p"}); const robots = document.createElement("meta"); robots.name = "robots"; robots.content = index + ', ' + follow; document.head.appendChild(robots); const contentType = document.createElement("meta"); contentType.httpEquiv = "Content-Type"; contentType.content = "text/html;charset=UTF-8"; document.head.appendChild(contentType); // const refresh = document.createElement("meta"); // refresh.httpEquiv = "refresh"; // refresh.content = "1200"; // document.head.appendChild(refresh); const themeColor = document.createElement("meta"); themeColor.name = "theme-color"; themeColor.content = colorHeaderBackground1; document.head.appendChild(themeColor); viewport = document.createElement("meta"); viewport.name = "viewport"; document.head.appendChild(viewport); const html = document.getElementById("html"); html.dir = localStorage["language"] === "1" ? "ltr" : "rtl"; const preload = document.createElement("link"); preload.rel = "preload"; preload.href = fontface1; preload.as = "font"; preload.type = "font/woff2"; preload.crossOrigin = "anonymous"; document.head.appendChild(preload); const preconnect = document.createElement("link"); preconnect.rel = "preconnect"; preconnect.href = "https://safiranahan.com"; document.head.appendChild(preconnect); const alternate = document.createElement('link'); alternate.rel = 'alternate'; alternate.href = window.location; alternate.hreflang = 'fa'; document.head.appendChild(alternate); // const relCanonical = document.createElement("link"); // relCanonical.rel = 'canonical'; // relCanonical.href = window.location; // document.head.appendChild(relCanonical); style = document.createElement("style"); style.id = "style"; style.textContent = "body {" + "margin: 0px;" + "padding-top: 100px;" + "}" + "@font-face {" + "font-family: fontface1;" + "src: url(" + fontface1 + ");" + "font-display: swap;" + "}" + "@font-face {" + "font-family: fontface2;" + "src: url(" + fontface2 + ");" + "font-display: swap;" + "}" + "@-webkit-keyframes spin {\n" + " 0% { -webkit-transform: rotate(0deg); }\n" + " 100% { -webkit-transform: rotate(360deg); }\n" + "}\n" + "@keyframes spin {\n" + " 0% { transform: rotate(0deg); }\n" + " 100% { transform: rotate(360deg); }\n" + "}" + ".imgc {\n" + " width: 90%;\n" + " height: 60%;\n" + " display: flex;\n" + " border-radius: 15px;\n" + " box-shadow: 3px 3px 5px #dedede;\n" + " loading: lazy;\n" + " margin: 25px auto;\n" + " }\n" + "\n" + " .para {\n" + " color: black;\n" + " font-size: 16px;\n" + " line-height: 1.7;\n" + " text-align: start;\n" + " font-family: fontface2, serif;\n" + " margin-bottom: 0.3cm;\n" + " }" + "*{font-family: fontface2 ;}\n" + ".inlink{\n" + " border-color: #0051FF;\n" + " border-style: solid;\n" + "\twidth: 86%;\n" + "\tdisplay: flex ;\n" + " margin-left: auto;\n" + " margin-right: auto;\n" + " margin-bottom: 35px;\n" + " margin-top: 35px;\n" + " padding-left: 20px;\n" + " padding-right: 25px;\n" + " padding-top: 10px;\n" + " padding-bottom: 15px;\n" + " border-style: solid;\n" + " border-top-width: 0px;\n" + " border-left-width: 0px;\n" + " border-right-width: 7px;\n" + " border-bottom-width: 0px;\n" + " background-image: linear-gradient(to right, rgba(255,0,0,0), rgba(200, 239, 255));\n" + "}\n" + ".pinlink{\n" + " line-height: auto;\n" + " padding: 0px ;\n" + " margin-left: 0;\n" + " margin-right: 0;\n" + " margin-bottom: 10px;\n" + " margin-top: 0;\n" + " font-weight: bold;\n" + " font-size: 20px;\n" + "}\n" + ".red{\n" + " color:#d90000;\n" + " font-weight: bold;\n" + " font-size: 20px;\n" + "}\n" + ".spara{\n" + " font-size: 14px;\n" + " margin-bottom: 0;\n" + " margin-top: 0;\n" + " padding-top: 0;\n" + " padding-bottom: 0;\n" + " font-weight: bold;\n" + " color:black;\n" + "}\n" + ".sectt{\n" + " padding-left: 20px;\n" + "}\n" + "h1,h2,h3,h4,h5,h6{\n" + " color: #0051FF;\n" + " font-weight: bold;\n" + "}\n" + "h1{\n" + " font-size: 30px;\n" + " text-align: center;\n" + "}\n" + "h2{\n" + " font-size: 26px;\n" + "}\n" + "h3{\n" + " font-size: 24px;\n" + "}\n" + "h4{\n" + " font-size: 22px;\n" + "}\n" + "h5{\n" + " font-size: 20px;\n" + " line-height: 0.7;\n" + "}\n" + "h6{\n" + " font-size: 19px;\n" + " color: #d90000;\n" + " line-height: auto;\n" + " margin-bottom: auto;\n" + " padding-bottom: auto;\n" + "}\n" + ".bw{\n" + " color: #0070d9;\n" + "}\n" + ".para{\n" + " color:black;\n" + " font-size: 18px;\n" + "}" + ".imgcl{\n" + " height: 113px;\n" + " width: 214px;\n" + " margin-right: auto;\n" + " border-radius: 7px;\n" + " margin-bottom: 0.2cm;\n" + " margin-top: 0.2cm;\n" + "}"; document.head.appendChild(style); style.textContent += " .pimgTelegram {background-color:" + colorTelegram + "; color:#ffffff;} .pimgTelegram:hover {background-color: " + colorTelegram + "aa; color:#ffffff;}" + " .pimgWhatsapp {background-color:#ffffff; color:" + colorWhatsapp + ";} .pimgWhatsapp:hover {background-color:#ffffff; color:" + colorWhatsapp + ";}" + " .pimgEitaa {background-color:" + colorEitaa + "; color:#ffffff;} .pimgEitaa:hover {background-color: " + colorEitaa + "aa; color:#ffffff;}" + " .imgSocial {opacity:1} .imgSocial:hover {opacity:0.5;}" + " .pimgHeader {background-color:" + colorless + ";} .pimgHeader:hover {background-color:" + colorHeaderHover + ";}" + " .pimgFooter {background-color:" + colorless + ";} .pimgFooter:hover {background-color:" + colorFooterHover + ";}" + " .pApplyComment {background-color:" + colorHeaderBackground1 + ";} .pApplyComment:hover {background-color:" + colorHeaderBackground3 + ";}"; document.body.style.display = "flex"; document.body.style.flexDirection = "column"; document.body.style.backgroundColor = colorBackground; // setBacklink(); if (localStorage.getItem('language') === null || localStorage.getItem('language') === undefined) { setLanguage(FA); } else { setLanguage(localStorage.getItem('language')); } const titleLogo = document.createElement("link"); titleLogo.rel = "icon"; titleLogo.href = imgLogo; titleLogo.type = "image/x-icon"; document.head.appendChild(titleLogo); const hiddenDiv = document.createElement("div"); hiddenDiv.style.width = "1cm"; document.body.appendChild(hiddenDiv); dpcm = hiddenDiv.offsetWidth; hiddenDiv.remove(); ConfigsZoomStatus = "none"; widthDots = dpcm * headerWidthNumeric; zoom = isZoom(); spinner = createSpinner(); spinner.style.border = "0.25cm solid #eeeeee"; spinner.style.borderTop = "0.25cm solid " + colorHeaderBackground1; spinner.style.borderRadius = "50%"; spinner.style.width = "1cm"; spinner.style.height = "1cm"; spinner.style.animation = "spin 1s linear infinite"; spinner.style.webkitAnimation = "spin 1s linear infinite"; window.addEventListener("resize", function () { windowWidthCm = window.innerWidth / dpcm; windowHeightCm = window.innerHeight / dpcm; // window.alert(windowWidthCm + " "); if (isZoom()) { ConfigsZoomStatus = "zoom"; zoom = true; zoomStyle(); } else if (!isZoom()) { ConfigsZoomStatus = "default"; zoom = false; defaultStyle(); } }); window.dispatchEvent(new Event("resize")); } function setHoverAnimation(element, className) { element.style.backgroundColor = ""; element.className = className; element.style.borderRadius = "1000px"; element.style.transition = "0.3s"; } function setHoverAnimation2(element, mouseoutColor, mouseoverColor) { element.style.backgroundColor = mouseoutColor; element.addEventListener("mouseout", function (event) { element.style.backgroundColor = mouseoutColor; }, false); element.addEventListener("mouseover", function (event) { element.style.backgroundColor = mouseoverColor; }, false); } function setHoverAnimationOpacity(element, outOpacity, overOpacity) { element.style.transition = "0.3s"; element.addEventListener("mouseout", function (event) { element.style.opacity = outOpacity; }, false); element.addEventListener("mouseover", function (event) { element.style.opacity = overOpacity; }, false); } function setHoverPointer(element) { element.addEventListener("mouseout", function (event) { this.style.cursor = "auto"; }, false); element.addEventListener("mouseover", function (event) { this.style.cursor = "pointer"; }, false); } function percent(percent) { return windowWidthCm * percent / 100 + "cm"; } class PImgLink extends HTMLAnchorElement { constructor(text, image, dir) { super(); this.imageRatio = 1; this.textSize = sizeHeaderText; this.style.backgroundColor = colorless; this.style.textDecoration = "none"; this.style.paddingLeft = this.style.paddingRight = "10px"; this.style.paddingTop = this.style.paddingBottom = "3px"; this.style.display = "flex"; this.style.alignItems = "center"; this.style.justifyContent = "center"; this.style.backgroundColor = "none"; this.style.margin = "0%"; var img = document.createElement("img"); img.style.display = "inline-block"; img.style.backgroundColor = colorless; img.src = image; img.style.width = "16px"; this.img = img; var p = createP(text); p.innerHTML = text; p.style.whiteSpace = "nowrap"; p.style.backgroundColor = colorless; p.style.fontFamily = "fontface1"; this.p = p; if (dir === "rtl") { p.style.marginRight = "5px"; if (htmlDir() === "rtl") { this.appendChild(img); this.appendChild(p); } else { this.appendChild(p); this.appendChild(img); } } else if (dir === "ltr") { p.style.marginLeft = "5px"; if (htmlDir() === "ltr") { this.appendChild(img); this.appendChild(p); } else { this.appendChild(p); this.appendChild(img); } } else { if (htmlDir() === "rtl") { p.style.marginRight = "5px"; } else { p.style.marginLeft = "5px"; } this.appendChild(img); this.appendChild(p); } return this; } setId(id) { this.id = id; this.img.id = id; this.p.id = id; } setAlt(alt) { this.img.alt = alt; } setWhiteSpace(whiteSpace) { this.p.style.whiteSpace = whiteSpace; } setTextColor(textColor) { this.p.style.color = textColor; } setTextSize(textSize) { this.textSize = textSize; this.p.style.fontSize = textSize; this.img.style.width = this.imageRatio * (textSize.substr(0, textSize.length - 2)) + "cm"; this.img.style.height = this.img.style.width; } setFontWeight(fontWeight) { this.p.style.fontWeight = fontWeight; } setImageRatio(imageRatio) { this.imageRatio = imageRatio; this.setTextSize(this.textSize); } setBackground(defaultColor, overColor, pressColor, borderRadius) { this.style.borderRadius = borderRadius; this.addEventListener("mouseout", function (event) { this.style.backgroundColor = defaultColor; }, false); this.addEventListener("mouseover", function (event) { this.style.backgroundColor = overColor; }, false); this.addEventListener("mousedown", function (event) { this.style.backgroundColor = pressColor; }, false); } setLink(link, title, isBlank) { this.href = link; this.title = title; this.style.cursor = "pointer"; this.target = isBlank ? "_blank" : "_self"; } } class PImg extends HTMLDivElement { constructor(text, image, dir) { super(); this.setAttribute('is', 'p-img'); this.style.backgroundColor = colorless; this.style.paddingLeft = this.style.paddingRight = "10px"; this.style.paddingTop = this.style.paddingBottom = "3px"; this.style.display = "flex"; this.style.flexDirection = "row"; this.style.alignItems = "center"; this.style.justifyContent = "center"; this.style.backgroundColor = "none"; this.style.margin = "0%"; const img = document.createElement("img"); img.style.display = "inline-block"; img.style.backgroundColor = colorless; img.src = image; img.style.width = "16px"; this.img = img; const p = createP(text); p.innerHTML = text; p.style.whiteSpace = "nowrap"; p.style.backgroundColor = colorless; p.style.fontFamily = "fontface1"; this.p = p; this.setTextSize(sizeText1); if (dir === "rtl") { p.style.marginRight = "0.3cm"; if (htmlDir() === "rtl") { this.appendChild(img); this.appendChild(p); } else { this.appendChild(p); this.appendChild(img); } } else if (dir === "ltr") { p.style.marginLeft = "0.3cm"; if (htmlDir() === "ltr") { this.appendChild(img); this.appendChild(p); } else { this.appendChild(p); this.appendChild(img); } } else { if (htmlDir() === "rtl") { p.style.marginRight = "0.3cm"; } else { p.style.marginLeft = "0.3cm"; } this.appendChild(img); this.appendChild(p); } return this; } setId(id) { this.id = id; this.img.id = id; this.p.id = id; } setAlt(alt) { this.img.alt = alt; } setWhiteSpace(whiteSpace) { this.p.style.whiteSpace = whiteSpace; } setTextColor(textColor) { this.p.style.color = textColor; } setTextSize(textSize) { this.textSize = textSize; this.p.style.fontSize = textSize; this.img.style.width = this.imageRatio * (textSize.substr(0, textSize.length - 2)) + "cm"; this.img.style.height = this.img.style.width; } setImageRatio(imageRatio) { this.imageRatio = imageRatio; this.setTextSize(this.textSize); } setOrientation(orientation) { this.style.flexDirection = orientation; if (orientation === "row") { this.p.style.marginInlineStart = "0.3cm"; this.p.style.marginTop = "0cm"; } else if (orientation === "column") { this.p.style.marginInlineStart = "0cm"; this.p.style.marginTop = "0.3cm"; } } setHint(hint) { this.title = hint; } } class PLink extends HTMLAnchorElement { constructor(text) { super(); this.style.backgroundColor = colorless; this.style.textDecoration = "none"; this.style.paddingLeft = this.style.paddingRight = "10px"; this.style.paddingTop = this.style.paddingBottom = "3px"; this.style.display = "flex"; this.style.alignItems = "center"; this.style.justifyContent = "center"; this.style.margin = "0%"; var p = createP(text); p.innerHTML = text; p.style.whiteSpace = "nowrap"; p.style.backgroundColor = colorless; p.style.fontFamily = "fontface1"; this.appendChild(p); this.p = p; return this; } setTextColor(textColor) { this.style.color = textColor; this.p.style.color = textColor; } setTextSize(textSize) { this.style.fontSize = textSize; this.p.style.fontSize = textSize; } setBackground(defaultColor, overColor, pressColor, borderRadius) { this.style.borderRadius = borderRadius; this.addEventListener("mouseout", function (event) { this.style.backgroundColor = defaultColor; this.style.cursor = "auto"; }, false); this.addEventListener("mouseover", function (event) { this.style.backgroundColor = overColor; this.style.cursor = "pointer"; }, false); this.addEventListener("mousedown", function (event) { this.style.backgroundColor = pressColor; }, false); } setLink(link, title, isBlank) { this.href = link; this.title = title; this.style.cursor = "pointer"; this.target = isBlank ? "_blank" : "_self"; } } class PClick extends HTMLParagraphElement { constructor(text) { super(); this.style.display = "inline-block"; this.innerHTML = text; this.style.margin = "0px"; this.style.color = colorText; this.style.backgroundColor = colorless; this.style.fontFamily = "fontface1"; } } function zoomStyle() { viewport.content = "width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=0"; const h1s = document.getElementsByClassName("h1"); for (let i = 0; i < h1s.length; i++) { h1s[i].style.fontSize = "0.5cm"; } // viewport.content = "width=device-width, initial-scale=1, maximum-scale=5.0"; } function defaultStyle() { viewport.content = "width=device-width, initial-scale=1, maximum-scale=5.0, user-scalable=0"; const h1s = document.getElementsByClassName("h1"); for (let i = 0; i < h1s.length; i++) { h1s[i].style.fontSize = sizeFooterText; } } function gregorianToJalali(gy, gm, gd) { gy = parseInt(gy); gm = parseInt(gm); gd = parseInt(gd); let jy, jm, jd, doyj; let d4 = gy % 4; let ga = [0, 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334]; let doyg = ga[parseInt(gm)] + gd; if (d4 === 0 && gm > 2) { doyg++; } let d33 = Math.floor(((gy - 16) % 132) * 0.0305); let a = (d33 === 3 || d33 < (d4 - 1) || d4 === 0) ? 286 : 287; let b = ((d33 === 1 || d33 === 2) && (d33 === d4 || d4 === 1)) ? 78 : ((d33 === 3 && d4 === 0) ? 80 : 79); if (Math.floor((gy - 10) / 63) === 30) { a--; b++; } if (doyg > b) { jy = gy - 621; doyj = doyg - b; } else { jy = gy - 622; doyj = doyg + a; } if (doyj < 187) { jm = Math.floor((doyj - 1) / 31); jd = doyj - (31 * jm++); } else { jm = Math.floor((doyj - 187) / 30); jd = doyj - 186 - (jm * 30); jm += 7; } return jy + '/' + jm + '/' + jd; } function gregorianToUnixTime(gy, gm, gd) { return Math.floor(new Date(gy + '.' + gm + '.' + gd).getTime() / 1000); } function jalaliToGregorian(jy, jm, jd) { jy = parseInt(jy); jm = parseInt(jm); jd = parseInt(jd); let gy, gm, gd; const gregorianMonths = [30, 31, 30, 31, 31, 30, 31, 30, 31, 31, 28, 31]; const gregorianMonthsLeap = [30, 31, 30, 31, 31, 30, 31, 30, 31, 31, 29, 31]; gy = jy + 621; let marchDayDiff = isYearLeap(gy) ? 12 : 11; let dayCount = 0; if (jm >= 1 && jm <= 6) { dayCount = (jm - 1) * 31 + jd; } else if (jm >= 7 && jm <= 12) { dayCount = (6 * 31) + (jm - 7) * 30 + jd; } if (dayCount < marchDayDiff) { gd = dayCount + (31 - marchDayDiff); gm = 3; } else { let remainDays = dayCount - marchDayDiff; let i = 0; if (isYearLeap(gy + 1)) { while (remainDays > gregorianMonths[i]) { remainDays -= gregorianMonthsLeap[i]; i++; } } else { while (remainDays > gregorianMonths[i]) { remainDays -= gregorianMonths[i]; i++; } } gd = remainDays; if (i > 8) { gm = i - 8; gy += 1; } else { gm = i + 4; } } return gy + '-' + gm + '-' + gd; } function jalaliToUnixTime(jy, jm, jd) { const date = jalaliToGregorian(jy, jm, jd); const i1 = date.indexOf('-'); const i2 = date.lastIndexOf('-'); const gy = date.substring(0, i1); const gm = date.substring(i1 + 1, i2); const gd = date.substring(i2 + 1); return gregorianToUnixTime(gy, gm, gd); } function unixTimeToGregorian(unixTime) { const date = new Date(unixTime * 1000); const gy = date.getFullYear(); const gm = date.getMonth() + 1; const gd = date.getDate(); return gy + '-' + gm + '-' + gd; // return date; } function unixTimeToJalali(unixTime) { const date = new Date(unixTime * 1000); const gy = date.getFullYear(); const gm = date.getMonth() + 1; const gd = date.getDate(); return gregorianToJalali(gy, gm, gd); } function isYearLeap(gy) { return ((gy % 100) !== 0 && (gy % 4) === 0) || ((gy % 100) === 0 && (gy % 400) === 0); }