let statesData = []; let _specialurl = ""; if (window.cbslist) { if (!window.cbslist["election_assembly_2021_all"]) { window.cbslist["election_assembly_2021_all"] = [ election_assembly_2021_all_cb_home, ]; } else { window.cbslist["election_assembly_2021_all"].push( election_assembly_2021_all_cb_home ); } } else { window.cbslist = {}; window.cbslist["election_assembly_2021_all"] = [ election_assembly_2021_all_cb_home, ]; } let _languageMap = { bengali: ["west-bengal", "tamil-nadu", "kerala", "assam", "puducherry"], tamil: ["tamil-nadu", "puducherry", "kerala", "west-bengal", "assam"], malayalam: ["kerala", "puducherry", "tamil-nadu", "west-bengal", "assam"], assam: ["assam", "west-bengal", "tamil-nadu", "kerala", "puducherry"], kannada: ["tamil-nadu", "kerala", "puducherry", "west-bengal", "assam"], telugu: ["tamil-nadu", "kerala", "puducherry", "west-bengal", "assam"], }; let _homeLandingShortCodes = { hindi: "hi", gujarati: "gj", lokmat: "lk", urdu: "ur", punjab: "pn", bengali: "bn", telugu: "tl", malayalam: "ml", kannada: "kn", tamil: "tm", odia: "od", assam: "am" }; let redisPrefixes = { hindi: "KHABARN18-", gujarati: "GujP18-", lokmat: "LOKMAT:", urdu: "UrdP18-", punjab: "PUNJABI-N18-", bengali: "BenP18-", telugu: "TELUGU-N18-", malayalam: "MALAYALAM-N18-", kannada: "KANNADA-N18-", tamil: "TAMIL-N18-", odia: "ODIA-N18-", assam: "ASSAM-N18-" }; let siteName = /([a-zA-Z-]*).news18.com/.exec(window.location.href); let siteenvmode = siteName && siteName[1] ? siteName[1].includes("-qc") ? "stg" : siteName[1].includes("beta") ? "" : siteName[1].includes("stg") ? "stg" : "" : ""; let bytafl = 0; let sponsorAd = 0; let bypollBgOnlyOnce = true; siteName = (siteName && siteName[1] ? siteName[1].replace(/beta|stg|-qc/gi, "") : "" ).toLowerCase(); let siteshortcode = _homeLandingShortCodes[siteName]; let siteredisprefix = redisPrefixes[siteName]; let languageSpecific = [ "bengali", "assam", "malayalam", "tamil", "hindi", ].includes(siteName); var _homeLandingHindiTrans = { hindi: { telangana: "तेलंगाना", "andhra-pradesh": "आंध्र प्रदेश", assam: "असम", bihar: "बिहार", goa: "गोवा", gujarat: "गुजरात", haryana: "हरियाणा", himachal: "हिमाचल", "himachal-pradesh": "हिमाचल प्रदेश", "jammu-kashmir": "जम्मू कश्मीर", "jammu-and-kashmir": "जम्मू कश्मीर", karnataka: "कर्नाटक", kerala: "केरल", "madhya-pradesh": "मध्य प्रदेश", maharashtra: "महाराष्ट्र", manipur: "मणिपुर", meghalaya: "मेघालय", nagaland: "नागालैंड", odisha: "ओडिशा", punjab: "पंजाब", rajasthan: "राजस्थान", "tamil-nadu": "तमिलनाडु", "tamilnadu": "तमिलनाडु", tripura: "त्रिपुरा", "uttar-pradesh": "उत्तर प्रदेश", "west-bengal": "पश्चिम बंगाल", "westbengal": "पश्चिम बंगाल", chhattisgarh: "छत्तीसगढ़", jharkhand: "झारखंड", uttarakhand: "उत्तराखंड", delhi: "दिल्ली", lakshadweep: "लक्षद्वीप", "andaman-nicobar": "अंडमान निकोबार द्वीप", "andaman-and-nicobar": "अंडमान निकोबार द्वीप", arunachal: "अरुणाचल", mizoram: "मिज़ोरम", sikkim: "सिक्किम", "daman-diu": "दमन दीव", "daman-and-diu": "दमन दीव", puducherry: "पुडुचेरी", chandigarh: "चंडीगढ़", "dadra-and-nagar-haveli": "दादरा नागर हवेली", "arunachal-pradesh": "अरुणाचल प्रदेश", "all-india": "देश ", telangna: "तेलंगाना", "jammu-&-kashmir": "जम्मू कश्मीर", Assembly: "विधानसभा", "Lok Sabha": "लोकसभा", // newly added "primary_state": "all-india", "toWin": "सीटें बहुमत के लिए", "toWin_n": "बहुमत के लिए", "needMoreSeat": "और सीट चाहिए", "someTopMsg": "1 सीट पर मतदान स्थगित", //सीटों "winPlusLead": "जीत + बढ़त", "winPlusLead_mobile": "जीत
+
बढ़त", "alliance_text": "गठबंधन", "seat_text": "सीटें", "party_text": "पार्टी", "party_text_a": ": पार्टीवार नतीजे", "refresh_text": "डेटा रिफ्रेश करें", "detail_result_text": "विस्तृत नतीजे", "key_candidate_text": "प्रमुख उम्मीदवार", "assembly_headline_text": " विधानसभा चुनाव रिज़ल्ट", "share_text_loksabha": "लोकसभा चुनाव २०१९ - भारतीय आम चुनाव", "share_text_assembly": "विधानसभा चुनाव २०१९", "assembly_text": "विधानसभा चुनाव", "share_text_state": "xxx लोकसभा चुनाव २०१९ - zzz Lok Sabha Election 2019 News in yyy - xxx लोकसभा इलेक्शन रिजल्ट २०१९", "alliance_tally_url" : "/assembly-election-2020/xxx-chunav/", "state_url" : "/assembly-election-2020/xxx-chunav/", "analytical_center_url" : "/lok-sabha-election-2020/analytics-centre/", "overall_ls_url" : "/lok-sabha-election-2020/party-wise-result/", "results" : "नतीजे", "table_text": "दिल्ली चुनाव नतीजे", "strike_rate": "स्ट्राइक रेट", "percentage_text": "*लड़ी गई सीटों पर जीत/बढ़त का प्रतिशत | पश्चिम बंगाल में 2 सीटों पर मतदान स्थगित.", "election_text": "नतीजे", "cons_text":"क्षेत्र", "ele_text":"चुनाव", "win_text":"जीते", "tally_text" : "टैली", "resuly_tally" :"परिणाम", "search_for_text" : "चुनाव क्षेत्र / पार्टी / प्रमुख उम्मीदवार के लिए खोजें", "on_maps" : "नक्शे पर" } }; var channelGifs = { hindi: "https://static.hindi.news18.com/ibnkhabar/uploads/2018/03/News18-INDIA_LOGO_WEB_NEW_2.png", bengali: "https://static.hindi.news18.com/ibnkhabar/uploads/assests/img/news18-bangla-web.png", odia: "https://images.hindi.news18.com/ibnkhabar/uploads/2017/12/news18-odia-1.png", gujarati: "https://images.hindi.news18.com/ibnkhabar/uploads/assests/img/news18-gujarati-web.png", urdu: "https://images.news18.com/static_news18/pix/ibnhome/news18/urdu/urdu-for-web.png", assam: "https://images.hindi.news18.com/ibnkhabar/uploads/2017/11/nw18assam-new.gif", kannada: "https://images.hindi.news18.com/ibnkhabar/uploads/assests/img/news18-kannada-site.png", tamil: "https://static.hindi.news18.com/ibnkhabar/uploads/assests/img/news18-tamil-nadu-tv.png", kerala: "https://images.hindi.news18.com/ibnkhabar/uploads/2017/11/news18-kerala-tv-new.png", malayalam: "https://images.hindi.news18.com/ibnkhabar/uploads/2017/11/news18-kerala-tv-new.png", punjab: "https://static.hindi.news18.com/ibnkhabar/uploads/2018/03/news18-punjab-haryana-himachal.gif", punjabi: "https://static.hindi.news18.com/ibnkhabar/uploads/2018/03/news18-punjab-haryana-himachal.gif", lokmat: "https://static.hindi.news18.com/ibnkhabar/uploads/assests/img/logo/lokmat.png" }; function createStyleLink(url) { let res = document.createElement("link"); res.rel = "stylesheet"; res.href = url; res.media = "print"; res.onload = () => { res.media = "all"; }; document.head.appendChild(res); } const loadJsonp = (src) => { if (typeof document !== "undefined") { let s = document.createElement("script"); let el = document.getElementsByTagName("script")[0]; s.src = src; el.parentNode.insertBefore(s, el); } }; function appendStyleTag(css) { let head = document.head || document.getElementsByTagName("head")[0], style = document.createElement("style"); head.appendChild(style); style.type = "text/css"; if (style.styleSheet) { // This is required for IE8 and below. style.styleSheet.cssText = css; } else { style.appendChild(document.createTextNode(css)); } } const scriptLoaderHomeLanding = (src, onload = () => {}) => { if (typeof document !== "undefined") { let s = document.createElement("script"); let el = document.getElementsByTagName("script")[0]; s.defer = true; s.onload = onload; s.src = src; el.parentNode.insertBefore(s, el); } }; // mobile detection let isMobile = false; if ( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( navigator?.userAgent ) ) { isMobile = true; } let activeTally = "alliance", electionAssemblyData = {}; const homePageWidgetCss = ` /*prefix css*/ a,abbr,acronym,address,applet,article,aside,audio,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,summary,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}ol,ul{list-style:none}button:focus,input:focus,textarea:focus{outline:0}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:'';content:none}table{border-collapse:collapse;border-spacing:0}a{text-decoration:none;outline:0;color:#212121}a:hover{text-decoration:none}* html{margin:0;padding:0; box-sizing:border-box;}li{list-style:none} :focus {outline:0;} *{box-sizing:border-box;} .hide {display:none} /*prefix css*/ .RHS {width:300px;} .RHS-Widgets {margin-bottom:20px;} .RHS-HeadingWrap {margin-bottom: 10px;font-family: 'Fira Sans Condensed', sans-serif;font-weight: 600;display: flex;} .RHS-HeadingWrap a{display:flex;color:#E1261C;text-transform:uppercase;font-size:20px;align-items:center;} .RHS-HeadingWrap a span {margin-left:5px;color:#001D42;position: relative;} .RHS-HeadingWrap a span:after {content: '';position: absolute;width: 100%;height: 3px;background: #e1261c;bottom: -3px;left: 0;} .RHS-HeadingWrap .refresh{margin-left:auto;} .RHS-HeadingWrap2 {margin-bottom: 10px;font-family: 'Fira Sans Condensed', sans-serif;font-weight: 500;} .RHS-HeadingWrap2 a{display:flex;color:#E1261C;text-transform:uppercase;font-size:20px;align-items:center;} .RHS-HeadingWrap2 a span {margin-left:5px;color:#001D42;position: relative;} .RHS-HeadingWrap2 a span:after {content: '';position: absolute;width: 100%;height: 3px;background: #e1261c;bottom: -3px;left: 0;} .featureConstWrap {padding: 9px;border: 1px solid #dfdfdf;margin-bottom: 20px;} .featureConst a {display:block;position: relative;background: #f1f1f1;} .featureConst .heading{color: #001d42;font-size: 20px;font-family: 'fira sans';text-align: center;padding-top: 10px;font-weight: 100;margin-bottom: 8px;} .featureConst .mapMarker {display: flex;justify-content: center; position: relative;} .featureConst .mapMarker:after {content: "";position: absolute;width: 92%;height: 1px;background: #dcdcdc;top: 15px;left: 0;right: 0;margin: auto;} .featureConst .mapMarker span{width:34px;height:34px;background: url(https://images.news18.com/static_news18/pix/ibnhome/news18/state-2021-election/election_css_sprites.png);display: block;background-position: -10px -9px;border-radius: 50%; position: relative; z-index: 1} .featureConst .constName{font-family: 'fira sans'; font-weight:600; width: 100%;color: #e1261c;font-size: 20px;margin-bottom: 5px;text-align:center;} .featureConst .stateName {font-family: 'fira sans';color: #001d42;font-size: 13px;text-align: center;padding-bottom:5px;} .featureConst a .icon1, .featureConst a .icon2, .featureConst a .icon3, .featureConst a .icon4{width:10px;height:10px;display:block;border:1px solid #000;position: absolute;} .featureConst a .icon1 {left:0;top:0;border-right: 0;border-bottom: 0;} .featureConst a .icon2 {right:0;top:0;border-left: 0;border-bottom: 0;} .featureConst a .icon3 {left:0;bottom:0;border-top: 0;border-right: 0;} .featureConst a .icon4 {right: 0;bottom: 0;border-top: 0;border-left: 0;} .RHS-topParties {background:#F6F6F6;border:1px solid #B6B4B4;padding:15px 15px 0;display: flex;flex-wrap: wrap;justify-content: space-between;} .RHS-topParties .partyRow{display:flex;align-items: center;width: 40%;margin-bottom:15px;} .RHS-topParties .partyRow .img{width:40px;height:40px;overflow: hidden;border-radius:50%;margin-right:10px;flex-shrink:0;} .RHS-topParties .partyRow .img img{width:100%;height:40px;} .RHS-topParties .partyRow .text {text-transform:uppercase;color: #001D42;font-family: 'fira sans'; font-weight:600;} .constOuter {background:#F6F6F6;padding: 6px 0 0 0;} .constResultWrap .tableWrap {max-height: 517px;overflow:auto;} .constResultWrap .tableWrap table {width:100%;border-collapse:collapse;font-family: 'fira sans';} .constResultWrap .tableWrap table th, .constResultWrap .tableWrap table td {border: 1px solid #d7d7d7;padding:10px 6px;text-align: center;} .constResultWrap .tableWrap table td {text-transform:uppercase;font-size:13px;} .constResultWrap .tableWrap table td:first-child {text-transform:initial;} .constResultWrap .tableWrap table td a{color:#fff;} .constResultWrap .tableWrap table td:first-child a {color:#464646; text-decoration: underline;} .constResultWrap .tableWrap table th {background: #001d42;position: sticky;left: 0;top: 0;padding: 25px 8px 8px 8px;font-size: 11px;border-top: 4px transparent;text-transform: uppercase;color: #fff;font-weight: normal;text-align: center;} .constResultWrap .tableWrap table th:nth-child(1), .constResultWrap .tableWrap table td:nth-child(1) {width:47%;text-align: left;} .RHS-graphicsWrap{border:1px solid #B6B4B4;background:#F6F6F6;} .RHS-graphicsWrap .image a{display:block;width:100%;height:199px;} .RHS-graphicsWrap .image a img{display:block;width:100%;height:199px;} .RHS-graphicsWrap .Content {padding: 10px;border-top: 1px solid #b6b4b4;} .RHS-graphicsWrap .Content .date{font-size: 12px;color: #949494;text-transform: uppercase;margin-bottom:5px;font-family: 'fira sans'; } .RHS-graphicsWrap .Content .heading{font-family: 'fira sans'; font-weight:600;font-size: 15px;color: #282828;} .stel-hglgt{border: 1px solid #b6b4b4;position: relative;margin-bottom: 20px;border-bottom: 0;} .stel-hglgt-slider{position: relative; overflow:hidden; margin: 15px} .stel-hglgt-slider ul{display: flex; margin-bottom: 20px} .stel-hglgt-slider ul li a{font-family: 'fira sans'; font-weight: 500; display: block; overflow: hidden; font-size: 14px; color: #001D42; font-style: italic; line-height: 22px; text-align: center;} .stel-hglgt-slider ul li a:hover{color: #e1261c} .stel-hglgt-bullets{display: flex; justify-content: center;} .stel-hglgt-bullets button{border: none;padding: 0px;background: #b0b0b0;width: 16px;height: 4px;border-radius: 20px;margin: 0 3px; cursor: pointer;} .stel-hglgt-bullets button.glide__bullet--active{background:#e1261c;} .stel-hglgt-shr{padding: 10px;border-top: 1px solid #b6b4b4;background: #f6f6f6;margin: 0 -1px;} .stel-hglgt-shr h3{font-family: 'fira sans'; font-weight:600;font-size: 12px;color: #7e7e7e;text-transform: uppercase;text-align: center; margin-bottom: 5px} .stel-hglgt-shr ul{justify-content: center;display:flex} .stel-hglgt-shr ul li{margin: 0 15px;line-height: 22px;} .stel-hglgt-shr ul li a {display: block;width: 18px;height: 18px;background: url(https://images.news18.com/static_news18/pix/ibnhome/news18/state-2021-election/election_css_sprites.png);background-repeat: no-repeat;} .stel-hglgt-shr ul li a.fb {background-position:-5px -101px;} .stel-hglgt-shr ul li a.tw {background-position:-119px -7px;} .stel-hglgt-shr ul li a.whatsapp {background-position:-81px -63px;} .stel-hglgt-shr ul li a.telegram {background-position:-118px -39px;} /***********multiselect dropdown***********/ .jh_filterddown {margin-bottom:5px;} .multi-select-container {position: relative; display:block;font-family:'fira sans';} .multi-select-menu {position: absolute;left: 0;top:104%;z-index: 1;float: left;min-width: 100%;background: #fff;border: 1px solid #cacaca;box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);display: none;} .multi-select-menuitem {display: block;font-size:14px;padding: 0.6em 1em 0.6em 30px;white-space: nowrap;text-transform: capitalize;} .multi-select-menuitem + .multi-select-menuitem {padding-top: 0;} .multi-select-presets {border-bottom: 1px solid #ddd;} .multi-select-menuitem input {position: absolute;margin-top: 0.25em;margin-left: -20px;} .multi-select-button {text-transform: capitalize;display: block;padding:8px 10px;width: 100%;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;vertical-align: -0.5em;background-color: #fff;border:1px solid #cacaca;cursor: default;box-sizing: border-box;font-size:14px;} .multi-select-button:after {content: "";width: 10px;height: 16px;position: absolute;background: url(//images.news18.com/static_news18/pix/ibnhome/news18/state-2021-election/dropdown_icon.png);top:10px;right: 7px;cursor: pointer;} .multi-select-container--open .multi-select-menu {display: block;} .jhcountday-tallymap-details {line-height: 1.1;} .assembly_election_rhs_top {width: 100%; display: flex; border-bottom: 1px solid #b6b4b4; padding: 6px 9px; box-sizing: border-box; background: #F2F2F2 0% 0% no-repeat padding-box; } .assembly_election_rhs_top select {width: 60px; height: 26px; background: #FFFFFF 0% 0% no-repeat padding-box; border: 1px solid #CACACA; border-radius: 6px; font-size: 14px; color: #E1261D; font-family: 'fira sans'; font-weight:600; appearance: none; padding: 0 5px; } ul.rhs_rabing {display: flex; align-items: center; margin-left: 10px; } ul.rhs_rabing li {width: 37px; height: 26px; background: #E5E5E5 0% 0% no-repeat padding-box; border: 1px solid #D5D5D5; border-radius: 6px; line-height: 26px; text-align: center; margin-right:5px; } ul.rhs_rabing li a {color: #606060; font-size: 13px; font-family: 'fira sans'; } .assembly_election_rhs {border: 1px solid #b6b4b4;position: relative;margin-bottom: 20px;} .assembly_rhs_map {width: 100%; padding: 10px; box-sizing: border-box; background-image: url(https://images.news18.com/static_news18/pix/ibnhome/news18/assembly-election-2019/img/jh_mpbg2.jpg); background-size: cover;overflow: hidden;} .assembly_rhs_map img { width: auto; display: block; margin: auto;} .assembly_election_rhs table {width: 100%; text-align: center; } .assembly_election_rhs table tr th {font-size: 14px; color: #fff; font-family: 'fira sans'; height: 25px; vertical-align: middle; border-right: 1px #fff solid; } .assembly_election_rhs table tr td {height: 41px; vertical-align: middle; font-size: 18px; color: #fff; font-family: 'fira sans'; font-weight:600; border-right: 1px #fff solid; border-top: 1px #fff solid; } .assembly_election_rhs table tr th:last-child {border: 0; } .assembly_rhs_table {width: 100%; padding: 10px; box-sizing: border-box; } .constResultWrap .rhs_rabing {margin-bottom: 10px; } ul.rhs_rabing li.active {background: #E1261D; border-color: #E1261D; } ul.rhs_rabing li.active a {color: #fff; } .highlight-date {display:block;color: #949494;font-family: 'fira sans';font-weight: 100;font-size: 12px;font-style: normal;text-transform: uppercase;text-align:center;margin-bottom:5px;} .triviaSliderOuter{border: 1px solid #b6b4b4;position: relative;margin-bottom: 20px;} .triviaSlider{position: relative; overflow:hidden; margin: 15px} .triviaSlider ul{display: flex; margin-bottom: 20px} .triviaSlider ul li a{font-family: 'fira sans'; font-weight: 500; display: block; overflow: hidden; font-size: 14px; color: #001D42; font-style: italic; line-height: 22px; text-align: center;} .triviaSlider ul li a:hover{color: #e1261c} .triviaSliderBullets{display: flex; justify-content: center;} .triviaSliderBullets button{border: none;padding: 0px;background: #b0b0b0;width: 16px;height:4px;border-radius: 20px;margin: 0 3px; cursor: pointer;} .triviaSliderBullets button.glide__bullet--active{background:#e1261c;} .triwid_icon {position: absolute;right: -14px;background: #ffffff;top: -24px;padding: 0 8px 8px;} .triwid_icon span {background: #ebebeb;width: 50px;height: 50px;display: table;border-radius: 50%;text-align: center;} .triwid_icon span img {margin-top: 11px;} .widget_graphics{border:1px solid #b6b4b4;} .widget_maininner a{display:block;color:#001d42;height:214px;overflow:hidden;} .widget_maininner a img{display:block;} .widget_graphics .widget_mainftr{padding:10px;border-top:1px solid #b6b4b4;background:#f6f6f6;} .widget_mainftr .widgetmain_head2{font-size:12px;color:#949494;text-transform:uppercase;margin-bottom:10px;} .widget_mainftr .widgetmain_head3{font-family: 'fira sans'; font-weight:600;font-size:15px;color:#282828;text-transform:uppercase;margin-bottom:10px;} .map_select:after {content: ""; width: 5px; height: 5px; border-top: 1px solid #444; border-left: 1px solid #444; position: absolute; right: 7px; transform: rotate(45deg ); top: 8px; transition: all .5s ease-in-out; } .map_select {position: relative; } .map_select:before {content: ""; width: 5px; height: 5px; border-top: 1px solid #444; border-left: 1px solid #444; position: absolute; right: 7px; transform: rotate(-135deg ); top: 13px; transition: all .5s ease-in-out; } .constOuter .RHS-HeadingWrap2 {padding-left: 10px; } .brcountdaywrap {font-family: 'Fira sans';background: #fff;position: relative;width: 100%;padding-bottom: 0;} .brcountday-container {max-width: 1244px;margin: auto;} .brcountday-tophd, .brcountday-tophd a {color: #001e44; font-size: 36px;line-height: 40px;font-weight: bold;padding: 0 20px;text-align: center;font-family: 'PT Serif';font-style: italic;margin-bottom: 10px;} .brcountday-title { margin-top: 5px; display: block; } .brcountday-title:hover { color: #001e44 !important; } .brcount-tophdLive {font-size: 12px;font-family: 'Fira Sans';color: #E1261C;font-style: initial;line-height: 16px;text-transform: uppercase;} .homeWidgetTallywrapper {display: flex;justify-content: space-between;margin-top:13px;margin-bottom:25px;} .homeWidgetTallywrapper .panelLeft {width:386px;} .homeWidgetTallywrapper .panelRight {width:838px;} .homeWidgetTallywrapper .homewidgetTab {display: flex;justify-content: center;align-items: center;padding: 8px 0 0 0;background: #F4F4F4;border-bottom: 1px solid #d5d5d5;} .homeWidgetTallywrapper .homewidgetTab li {margin:0 20px;padding-bottom:0px !important;font-family: 'Fira Sans Condensed', sans-serif !important;font-weight: 500 !important;} .homeWidgetTallywrapper .homewidgetTab li a{font-family: 'Fira Sans Condensed', sans-serif !important;font-weight: 500 !important;color:#464646;font-size: 22px !important;text-transform: capitalize;padding-bottom: 5px;position: relative;display: block;} .homeWidgetTallywrapper .homewidgetTab li.active a{font-weight: 500;color: #e1261c !important;} .homeWidgetTallywrapper .homewidgetTab li.active a::after {content: '';position: absolute;height:3px;width: 100%;background: #e1261c;left: 0;bottom: 0;} .homeWidgetTallywrapper .ls_searchbox {margin-bottom:10px;} .homeWidgetTallywrapper .ls_searchform {background: #ffffff;width: 100%;position: relative;} .homeWidgetTallywrapper .ls_searchinner {display: flex;padding: 0;border: 1px solid #d5d5d5;margin-bottom:5px;} .homeWidgetTallywrapper .ls_searchinner input {width: 100%;padding: 8px 8px;box-sizing: border-box;font-size: 13px;border: 0;background: #F8F8F8;} .homeWidgetTallywrapper .ls_searchinner button {width: 34px;background: #e1261c;border: 0;} .homeWidgetTallywrapper .ls_searchinner button img {width: 20px;height:19px;} .allianceTableouter {border: 1px solid #d5d5d5;box-shadow: 8px 8px 0px #e3e3e3;} .allianceTableinner {padding:10px 15px;} .allianceTableSec {margin-bottom:15px;} .allianceTableSec:last-child {margin-bottom:0;} .allianceTableHead {display: flex;justify-content: space-between;text-transform: uppercase;align-items: center;line-height: 20px;} .homeWidgetTallywrapper .allianceTableHead .allianceHead-1{color: #001c42;font-size: 16px !important;font-family: 'Fira Sans Condensed', sans-serif !important; font-weight: 500 !important;} .homeWidgetTallywrapper .allianceTableHead .allianceHead-1 span {color: #e04034;} .allianceTableHead .allianceHead-2 {font-weight: normal;color: #767676;font-size: 14px;} .allianceTableHead .allianceHead-2 span {color: #474747;font-family: 'fira sans';font-weight: 600;} .allianceTableHead .allianceHead-3 {color: #a7a7a7;font-size: 12px;} .allianceTableftr {color:#929292;font-size:12px;font-family:'fira sans';font-style:italic;margin-top: 5px;} .brcountday-tallywidget-table{position:relative;padding-right:30px;} .brcountday-tallywidget-table .brcountday-tallywidget-right{height:100%;background:#e7e7e7;width:30px;position:absolute;right:0;top:0px;bottom:0px;border-bottom:2px solid #d0d0d0;} .brcountday-tallywidget-right:before,.brcountday-tallywidget-right:after{content:"";position:absolute;} .brcountday-tallywidget-right:before{width:18px;height:4px;background:#464646;top:50%;margin-top:-2px;left:50%;margin-left:-9px;} .brcountday-tallywidget-right:after{width:4px;height:18px;background:#464646;top:50%;margin-top:-9px;left:50%;margin-left:-2px;} .brcountday-tallywidget-table table{width:100%;background:#e7e7e7;border-collapse:collapse;} .brcountday-tallywidget-table table tr th,.brcountday-tallywidget-table table tr td{padding:5px;border:1px solid #f6f6f6;text-align:center;line-height:16px;text-transform:uppercase;white-space:nowrap;text-shadow: 0 0 10px #333333a6;} .brcountday-tallywidget-table table tr:nth-child(2) td{font-size:30px;padding:7px 0;color:#fff;line-height:35px;font-family:'fira sans';font-weight:500;vertical-align:middle;} .brcountday-tallywidget-table table tr td:nth-child(1){font-weight:bold;font-size:12px;color:#464646;width:110px;background:#e7e7e7;font-family:'fira sans';} .brcountday-tallywidget-table table tr th{font-size:14px;font-weight:normal;color:#fff;vertical-align:middle;} .brcountday-tallywidget-table table tr th:nth-child(1){color:#464646;font-weight:bold;font-size:12px;background:#e7e7e7;} .brcountday-tallywidget-table table tr th:nth-child(1), .brcountday-tallywidget-table table tr td:nth-child(1) {text-shadow: initial;} .brcountday-tallywidget-table table tr:nth-child(4){border-bottom:2px solid #d0d0d0;} .brcountday-tallywidget-table table tr:nth-child(3) td,.brcountday-tallywidget-table table tr:nth-child(4) td{font-size:12px;padding:2px 5px;color:#7a7a7a;text-shadow: initial;} .brcountday-tallywidget-table table tr:nth-child(3) td:first-child,.brcountday-tallywidget-table table tr:nth-child(4) td:first-child{color:#464646;} .brcountday-tallywidget-table .tally-tablebox{display:flex;justify-content:center;align-items:center;} .brcountday-tallywidget-table .tally-tablebox .box-inner:first-child{font-size:32px;padding-right:10px;border-right:1px solid #ffffff54;} .brcountday-tallywidget-table .tally-tablebox .box-inner:last-child{font-size:12px;font-family:'fira sans';font-weight:normal;padding-left:10px;text-align:left;line-height:14px;} .brcountday-tallywidget-table .tally-tablebox .box-inner span{display:block;} .brcountday-candidateslider{position: relative;overflow: hidden; padding: 10px 35px} .brcountday-candidateslider-in{overflow: hidden;} .brcountday-candidateslider ul{display: flex;overflow: hidden;} .brcountday-candidateslider ul li a{background: #fff;border: 1px solid #d6d6d6; overflow: hidden; border-radius: 6px; border-bottom: 5px solid #464646; display: flex;padding: 5px 10px; box-sizing: border-box; align-items: flex-start;} .brcountday-candidateslider ul li a figure{width: 60px; height: 60px; border-radius: 100%; flex-shrink: 0; margin-right: 10px;overflow: hidden;} .brcountday-candidateslider ul li a figure img{height: 100%} .brcountday-candidateslider ul li a .candidateslider-details{width:70%;line-height: 0.75em;} .brcountday-candidateslider ul li a .candidateslider-details h3{font-size: 15px;color: #010101; font-weight: bold;margin-bottom: 3px;} .brcountday-candidateslider ul li a .candidateslider-details h3 span{display: block; font-weight: normal; color: #474747;padding: 4px 0; font-size: 12px} .brcountdaywrap .brcountday-candidateslider ul li a .candidateslider-details p{color:#464646;font-size: 26px;font-family:'fira sans' !important;font-weight:500;line-height: 22px;} .brcountdaywrap .brcountday-candidateslider ul li a .candidateslider-details p em{background: url(//images.news18.com/static_news18/pix/ibnhome/news18/assembly-election-2019/img/elstatusicon-mobile.png) 0 0 no-repeat; width:23px; height: 23px; display: inline-block; vertical-align: middle; margin:0 5px;} .brcountdaywrap .brcountday-candidateslider ul li a .candidateslider-details p em.status-lost{background-position: 0px -163px;} .brcountdaywrap .brcountday-candidateslider ul li a .candidateslider-details p em.status-won{background-position: 0px -13px;} .brcountdaywrap .brcountday-candidateslider ul li a .candidateslider-details p em.status-leading{background-position: 0px -63px;} .brcountdaywrap .brcountday-candidateslider ul li a .candidateslider-details p em.status-trailing{background-position: 0px -113px;} .brcountdaywrap .brcountday-candidateslider ul li a .candidateslider-details p em.status-na{display: none;} .brcountdaywrap .brcountday-candidateslider ul li a .candidateslider-details p b{text-transform: uppercase;} .brcountday-candidateslider ul li a .candidateslider-details h3 b{ margin-bottom: 5px;font-family: 'fira sans';font-weight:500;} .brcountday-candidateslider ul li a.cndt-won .candidateslider-details p b{color: #004d21;font-family: 'fira sans';font-weight:500;} .brcountday-candidateslider ul li a.cndt-lost .candidateslider-details p b{color: #e1261c} .brcountday-candidateslider ul li a.cndt-leading .candidateslider-details p b{color: #6d9a48} .brcountday-candidateslider ul li a.cndt-trailing .candidateslider-details p b{color: #e6635b} .brcountday-candidateslider ul li a.cndt-loses .candidateslider-details p em{background-position: -23px 0px} .brcountday-candidateslider ul li a.cndt-na .candidateslider-details p{min-height: 23px;} .brcountday-arrow button{position: absolute;top:37%; margin-top: -9px; width: 18px;height: 18px;border: 2px solid #a1a1a1;background: #f6f6f6;border-radius: 100%;box-sizing: border-box;margin: 0;padding: 0; outline: none; cursor: pointer; left:10px;} .brcountday-arrow button:before, .brcountday-arrow button:after{content: ""; position: absolute;} .brcountday-arrow button:before{border-right: 5px solid #a1a1a1;border-top: 4px solid transparent;border-bottom: 5px solid transparent;top: 3px;left: 2px} .brcountday-arrow button:after{height: 4px;width: 4px;background: #a1a1a1;top: 5px;left: 7px;} .brcountday-arrow button:last-child{right:10px; left: auto; transform: rotate(180deg);} .bypoll-full-slider {background: #ececec;border-top: 1px solid #d7d7d7;} .brcountday-bypollslider {max-width: 1244px;margin:auto;} .bypoll_section {display:flex;justify-content:space-between;padding-top: 10px;} .bypoll_rigth {display: flex;align-items: center;} .bypoll_rigth a{margin-right: 13px;text-transform: uppercase;color: #e1261c;z-index: 1;text-align: center;font-weight: bold;font-size: 13px;position: relative;border-bottom: 1px #e1261c solid;padding-bottom: 3px;line-height: 14px;} .bypoll_rigth a:after, .bypoll_rigth a:before {content: "";position: absolute;} .bypoll_rigth a:before {width: 8px;height: 2px;background: #d42b23;top: 7px;right: -12px;} .bypoll_rigth a:after {width: 4px;height: 4px;border-bottom: 2px solid #d42b23;border-right: 2px solid #d42b23;transform: rotate(-45deg);top: 5px;right: -12px} .as_dropdownWrap {position: relative;margin-left: 13px;} .as_dropdownWrap .as_seat_text {background: #e1261d;border: none;width: 150px;height: 26px;line-height: 26px;color: #fff;border-radius: 5px;font-size: 12px;font-family: 'fira sans';-webkit-appearance: none;-moz-appearance: none;appearance: none;background-image: url(https://images.news18.com/static_news18/pix/ibnhome/news18/state-2021-election/dropdown-icon.png);background-repeat: no-repeat;background-position: center right 5px;padding-right: 13px;padding-left: 5px; cursor: pointer;} .as_dropdownWrap .as_seat_dropbox {width: 100%;background: #e1261d;position: absolute;right: 0;overflow-x: auto;height: 240px;z-index: 999;display:none;} .as_dropdownWrap .as_seat_dropbox ul{margin:0;padding:0;} .as_dropdownWrap .as_seat_dropbox ul li{list-style:none;} .as_dropdownWrap .as_seat_dropbox ul li a {font-size: 12px;text-decoration: none;color: #fff;padding: 4px 10px;display: block;text-transform: initial;font-family: 'fira sans';font-weight: normal;margin: 0; text-align: left;} .as_dropdownWrap .as_seat_dropbox ul li a:after, .as_dropdownWrap .as_seat_dropbox ul li a:before {content: initial;} .assemblyResultSlider{position: relative;overflow: hidden;} .assemblyResultSlider-in{overflow: hidden;} .assemblyResultSlider ul{display: flex;overflow: hidden;} .assemblyResultSlider ul li{overflow: hidden;box-sizing: border-box;} .assemblyResultSlider ul li a{text-align: center;display: block;font-size: 13px;color: #333;} .assemblyResultTable{width: 100%;background: #f6f6f6;border-collapse: collapse;} .assemblyResultTable tr td{font-family: 'Fira Sans';padding: 5px;border: 1px solid #f6f6f6;font-size:11px;text-transform:uppercase;width: 63px;vertical-align: middle;} .assemblyResultTable tr td:first-child {width: 143px;text-align:left;background:#10162E;color:#fff;} .assemblyResultTable tr:first-child td:nth-child(1){font-weight:500;} .assemblyResultTable tr:first-child td:nth-child(2), .assemblyResultTable tr:first-child td:nth-child(3), .assemblyResultTable tr:first-child td:nth-child(4), .assemblyResultTable tr:first-child td:nth-child(5), .assemblyResultTable tr:first-child td:nth-child(6){font-size:14px;background:#464646;color:#fff; text-align: center !important;} .assemblyResultTable tr:nth-child(2) td:not(:first-child){font-size:18px;color:#464646;font-weight:600; background : #f6f6f6 !important; text-align: center !important;} .assemblyResultTable tr:nth-child(3) td:not(:first-child){font-size:12px;background:#444444;color:#DCDCDC;} .AsResult-bullets{display: flex; justify-content: center;margin:10px 0 13px;} .AsResult-bullets button{border: none;padding: 0px;background: #b0b0b0;width: 16px;height: 4px;border-radius: 20px;margin: 0 3px; cursor: pointer;} .AsResult-bullets button.glide__bullet--active{background:#e1261c;} .brcountdaywrap .homeWidgetTallywrapper .cd-watchlive {border: 1px solid #b6b4b4;margin-bottom: 20px;background:#ffffff} .brcountdaywrap .homeWidgetTallywrapper .cd-watchlive .cd-watchlive-hd {padding: 10px 15px 0px 30px;background: #ffffff url(https://static.hindi.news18.com/ibnkhabar/uploads/2019/05/tv.png) 0 10px no-repeat;position: relative;display: flex;margin: 0 10px;line-height:22px;justify-content:initial !important; align-items: initial !important} .brcountdaywrap .homeWidgetTallywrapper .cd-watchlive .nw-dots {position: absolute;top: 40px;left: 4px;} .brcountdaywrap .homeWidgetTallywrapper .cd-watchlive-hd .liveTvTxtWrap{font-family: 'Fira Sans Condensed', sans-serif;text-transform: uppercase;font-weight: 500;color: #464646;margin-right:10px;} .brcountdaywrap .homeWidgetTallywrapper .cd-watchlive-hd .liveTvTxtWrap .boldTxt{color:#E1261C;font-size:22px;font-weight:600;} .brcountdaywrap .homeWidgetTallywrapper .cd-watchlive-hd .liveTvTxtWrap .boldTxt span{font-size:14px;color:#858585;font-weight: normal;text-transform: initial} .analyticeBtn {display: flex;border: 1px solid #b6b4b4;padding: 15px 10px 0;border-bottom: 5px solid #001d42;} .analyticeBtn img {margin-right: 15px;flex-shrink:0;align-self: flex-end;} .analyticeBtn .txt{font-family: 'Fira Sans Condensed', sans-serif;width:100%;} .analyticeBtn .heading-1 {font-size:16px;color:#545454;display: flex; align-items: baseline;} .analyticeBtn .heading-1 > div {flex-shrink: 0;padding-right:5px;} .analyticeBtn .heading-1::after{content:'';width:100%;height:5px;background:#E8E8E8;display: block;} .analyticeBtn .heading-1 span{color:#E1261C;font-weight:600;} .analyticeBtn .heading-2 {font-size:24px;color:#001D42;font-weight: 600;position: relative;} .analyticeBtn .heading-2:before, .analyticeBtn .heading-2:after{display: block;position: absolute;content: "";} .analyticeBtn .heading-2:before {width: 13px;height: 2px;background: #464646;right: 1px;bottom: 12px;} .analyticeBtn .heading-2:after {border-right: 2px solid #464646;border-top: 2px solid #464646;width: 7px;height: 7px;transform: rotate(45deg);bottom: 9px;right:0px;} .homeWidgetMap .assembly_rhs_map{padding: 20px 10px;} .homeWidgetMap svg {width: 100%;height: 233px;margin-bottom: 10px;} .homeWidgetTallywrapper .cd-watchlive {overflow: hidden;} .stel-hd{position:relative;font-size:20px;text-transform:uppercase;color:#e1261c;line-height:20px;font-family:'Fira Sans Condensed',sans-serif;margin-bottom:12px;font-weight:500} .stel-hd a{color:#e1261c}.stel-hd span, .stel-hd a span{color:#001d42;border-bottom:3px #e1261c solid;line-height:22px;display:inline-table} .election_graphics{width:100%;background:#F6F6F6 0% 0% no-repeat padding-box;border:1px solid #B6B4B4;margin-bottom:20px} .election_graphics img{width:100%;display:block} .newelec-morechanelwrap{position:relative;z-index:1}.newelec-morechanelhd{background:#e1261c;height:34px;line-height:34px;color:#fff;font-size:14px;padding:0 15px;text-transform:uppercase;position:relative;cursor:pointer}.newelec-morechanellist{padding:0 10px;display:none;position:absolute;top:34px;left:0;right:0;background:rgba(255,255,255,.95);border:1px solid #e1261c;z-index:1}.newelec-morechanellist{padding:0 10px;display:none;position:absolute;top:34px;left:0;right:0;background:rgba(255,255,255,.95);border:1px solid #e1261c;z-index:1}.newelec-morechanellist li{color:#222;font-size:13px;text-transform:uppercase;border-top:1px solid #eee;padding:6px 5px;line-height: 20px;}.newelec-morechanellist li a{color:#222} .newelec-morechanelhd:after{content:"";border-top:7px solid #fff;border-left:5px solid transparent;border-right:5px solid transparent;position:absolute;right:10px;top:12px;transition:all .5s ease-in-out} .homeWidgetTallywrapper .ns-d img {width: 100px !important;} @keyframes blinker { from { opacity: 1; }to { opacity: 0; }} .dots-div {content: "";background: #e1261c;width: 8px;height: 8px;border-radius: 100%;display: inline-block;margin-right: 5px;} .dots-div.blink {animation: blinker 1s cubic-bezier(.5, 0, 1, 1) infinite alternate;} .homeWidgetTallywrapper #playerContainer { height:250px !important; } .dummy-alliance-result { width: 100%; padding : 20px; box-sizing: border-box; } .dummy-alliance-result li { width: 100%; min-height: ${languageSpecific ? '207px' : '185px'}; box-sizing: border-box; margin-bottom: 20px; background : rgba(0,0,0,0.05) !important; position: relative; border-radius: 10px; overflow: hidden; } .dummy-alliance-result li:nth-child(4) { margin-bottom: 0px; } .dummy-camdidate-slider-result { width: 100%; padding : 20px; box-sizing: border-box; overflow: hidden; } .dummy-camdidate-slider-result li { width: 25%; min-height: 80px; box-sizing: border-box;margin-right: 20px;background : rgba(0,0,0,0.02) !important;position: relative;border-radius: 5px;overflow: hidden;} .dummy-camdidate-slider-result li:nth-child(4) {margin-right: 0px;} .dummy-camdidate-slider-result li::before {content: " ";position: absolute;width: 100%;height: 100%;top: 0;eft: 0;background: rgba(0,0,0,0.02) !important;animation: mymove 2s infinite !important; } .dummy-map-result {width: 100%;padding : 10px;box-sizing: border-box;overflow: hidden;} .dummy-map-result li {width: 100%;min-height: 80px;box-sizing: border-box;margin-bottom: 20px;background : rgba(0,0,0,0.02) !important;position: relative;border-radius: 5px;overflow: hidden;} .dummy-map-result li:nth-child(1) {min-height: 30px;} .dummy-map-result li:nth-child(2) {min-height: 280px;} .dummy-map-result li:nth-child(3) {min-height: 70px;margin-bottom: 0;} .dummy-map-result li::before {content: " ";position: absolute;width: 100%;height: 100%;top: 0;left: 0;background: rgba(0,0,0,0.02) !important;animation: mymove 2s infinite !important;} .dummy-analytic-section-result-parent {width: 100%;height: 100%;box-sizing: border-box;padding: 10px;} .dummy-analytic-section-result {width: 100%;height: 50px;border-radius: 5px;overflow: hidden;position: relative;background : rgba(0,0,0,0.02) !important;} .dummy-analytic-section-result::before {content: " ";position: absolute;width: 100%;height: 100%;top: 0;left: 0;background: rgba(0,0,0,0.02) !important;animation: mymove 2s infinite !important;} @keyframes mymove { from {width: 0;} to {width: 100%;} } #ass-autocomplete-results ul {margin: 0;padding: 0;max-height: 132px;overflow-y: auto;width: 100%;left: 0px;position: absolute;background: #ffd200;z-index: 999;border-left: 2px solid #ffae00;border-right: 2px solid #ffae00;border-bottom: 2px solid #ffae00;} #ass-autocomplete-results ul::-webkit-scrollbar {width: 3px;} #ass-autocomplete-results ul::-webkit-scrollbar-track {box-shadow: inset 0 0 5px grey;border-radius: 10px;} #ass-autocomplete-results ul::-webkit-scrollbar-thumb {background: #333;border-radius: 10px;} #ass-autocomplete-results ul::-webkit-scrollbar-thumb:hover {background: #b30000;} #ass-autocomplete-results ul li {margin: 0;list-style: none;} #ass-autocomplete-results ul li a {padding: 14px 14px 14px 75px;display: block;font-size: 15px;color: #000;background: url(https://images.news18.com/static_news18/pix/ibnhome/news18/assembly-election-2019/img/search-icon1.png) no-repeat;background-position: 20px center;background-size: 17px; font-family: 'Fira Sans', sans-serif;z-index: 1000;} #ass-autocomplete-results ul li a:hover {background-color:#ffa800;} #ass-autocomplete-results ul {background-color:#ffd200 !important;} .dummy-alliance-result-span { min-height: 20px; width: 75%; background: rgba(0,0,0,0.02) !important; margin: 10px; border-radius: 5px; position: relative; overflow: hidden; } .dummy-alliance-result-span::before, .dummy-alliance-result-div div::before { content: " "; position: absolute; width: 100%; height: 100%; top: 0; left: 0;background: rgba(0,0,0,0.02) !important; animation: mymove 2s infinite !important; } .dummy-alliance-result-div { display: flex; flex-direction: row; justify-content: space-between; margin: 12px; } .dummy-alliance-result-div div{ width: 33%; height: 130px; border-radius: 5px; position: relative; overflow: hidden; background: rgba(0,0,0,0.02) !important; } .dummy-heading-result { width:100%; padding: 15px; box-sizing:border-box; background: rgba(0,0,0,0.05) !important;} .dummy-heading-result div { min-height: 50px; border-radius: 5px; background: rgba(0,0,0,0.05) !important; position: relative;} .dummy-heading-result div::before{ content: " "; position: absolute; width: 100%; height: 100%; top: 0; left: 0;background: rgba(0,0,0,0.02) !important; animation: mymove 2s infinite !important; } `; const mHomePageWidgetCss = ` /*prefix css*/ a,abbr,acronym,address,applet,article,aside,audio,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,summary,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}ol,ul{list-style:none}button:focus,input:focus,textarea:focus{outline:0}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:'';content:none}table{border-collapse:collapse;border-spacing:0}a{text-decoration:none;outline:0;color:#212121}a:hover{text-decoration:none}* html{margin:0;padding:0; box-sizing:border-box;}li{list-style:none} :focus {outline:0;} *{box-sizing:border-box;} strong {font-weight:normal;} /*prefix css*/ @keyframes mymove { from {width: 0;} to {width: 100%;} } @keyframes blinker { from { opacity: 1; }to { opacity: 0; }} .brcountdaywrap {position: relative;background: #ffffff;width: 100%;} .brcountday-tophd {color: #001e44;font-size: 18px;line-height: 26px;font-weight: bold;padding: 5px 9px;text-align: center;display: block;font-family: 'PT Serif';font-style: italic;background: #f6f6f6;border-bottom: 1px #c7c6c6 solid;} .brcountday-title { color: #001e44;} .brcountday-title:hover { color: #001e44 !important; } .brcount-tophdLive {font-size: 12px;font-family: 'Fira Sans';color: #E1261C;font-style: initial;line-height: 16px;text-transform: uppercase;} .dots-div {content: "";background: #e1261c;width: 8px;height: 8px;border-radius: 100%;display: inline-block;margin-right: 5px;} .dots-div.blink {animation: blinker 1s cubic-bezier(.5, 0, 1, 1) infinite alternate;} .brcountday-tallymap{background:#fff;margin:10px;border-bottom: 5px solid #B4B4B4;} .brcountday-tallymap-left{width:100%;box-sizing:border-box;margin-bottom:8px;} #MobileResultTallyWidget .brcountday-rslttally-hd{display:flex;text-transform:uppercase;align-items:center;line-height:20px;margin-bottom: 4px;} #MobileResultTallyWidget .brcountday-rslttally-hd h2{color:#e04034;font-size:16px;font-family:'Fira Sans Condensed', sans-serif;font-weight:600;margin-right:10px;} #MobileResultTallyWidget .brcountday-rslttally-hd h3{font-weight:normal;color:#767676;font-size:12px;font-family:'fira sans';margin-right:5px;} #MobileResultTallyWidget .brcountday-rslttally-hd h3 span{color:#474747;font-family:'fira sans';font-weight:600;} #MobileResultTallyWidget .brcountday-rslttally-hd p{color:#a7a7a7;font-size:11px;font-family:'fira sans';margin-right: auto;} #MobileResultTallyWidget .brcountday-rslttally-hd .ExpandAll{font-size: 11px;text-transform: capitalize;font-family: 'Fira Sans';background: #001D42;color: #F4DA00;padding: 1px 6px;font-weight: 500;border-radius: 10px;text-align: center;min-width:65px;} .is-expanded{display:none;} .is-expanded.active{display:table-row;} .brcountday-tallywidget-table{position:relative;padding-right:22px;} .brcountday-tallywidget-table .brcountday-tallywidget-right{height:100%;background:#e7e7e7;width:22px;position:absolute;right:0;top:0;bottom:0px;border-bottom:0px !important;} .brcountday-tallywidget-right:before,.brcountday-tallywidget-right:after{content:"";position:absolute;} .brcountday-tallywidget-right:before{width:14px;height:2px;margin-top:4px;margin-left:-9px;background:#464646;top:50%;left:50%;} .brcountday-tallywidget-right:after{width:8px;height:8px;background:none;margin-top:0px;margin-left:-4px;border-top:2px solid #464646;border-right:2px solid #464646;transform:rotate(45deg);left:50%;top:50%;} .brcountday-tallywidget-table table{width:100%;background:#e7e7e7;border-collapse:collapse;table-layout:fixed;} .brcountday-tallywidget-table table tr th,.brcountday-tallywidget-table table tr td{padding:5px;border:1px solid #f6f6f6;text-align:center;text-transform:uppercase;min-width:58px;text-shadow: 0 0 10px #333333a6;} .is-expanded td{text-shadow:none !important;} .brcountday-tallywidget-table table tr td{font-size:12px;} .brcountday-tallywidget-table table tr:nth-child(2) td{font-family:'fira sans';font-size:28px;padding:6px 0;color:#fff;vertical-align:middle;font-weight:500;} .brcountday-tallywidget-table table tr td:nth-child(1){font-weight:600 !important;font-size:11px;color:#464646;width:110px;background:#e7e7e7;font-family:'fira sans';font-weight:500;} .brcountday-tallywidget-table table tr th{font-size:12px;font-weight:normal;color:#fff;font-family:'fira sans';} .brcountday-tallywidget-table table tr th:nth-child(1){min-width:22px;color:#464646;font-size:11px;background:#e7e7e7;font-family:'fira sans';font-weight:600 !important;} .brcountday-tallywidget-table table tr th:nth-child(1), .brcountday-tallywidget-table table tr td:nth-child(1){text-shadow:initial;} .brcountday-tallymap-details{color:#929292;font-size:12px;padding-top:6px;font-style:italic;font-family:'fira sans';} .brcountday-bypollslider {width:100%;padding: 0 10px 10px;background: #ececec;border-top:1px solid #c5c5c5;border-bottom: 3px solid #c5c5c5;} .bypoll_section {display:flex;justify-content:space-between;padding-top: 10px;} .bypoll_section img {width:100%;} .bypoll_rigth {display: flex;align-items: center;} .bypoll_rigth a{margin-right: 13px;text-transform: uppercase;color: #e1261c;z-index: 1;text-align: center;font-weight: 600;font-size: 12px;position: relative;border-bottom: 1px #e1261c solid;padding-bottom: 3px;line-height: 14px;font-family: 'Fira Sans';} .bypoll_rigth a:after, .bypoll_rigth a:before {content: "";position: absolute;} .bypoll_rigth a:before {width: 8px;height: 2px;background: #d42b23;top: 7px;right: -12px;} .bypoll_rigth a:after {width: 4px;height: 4px;border-bottom: 2px solid #d42b23;border-right: 2px solid #d42b23;transform: rotate(-45deg);top: 5px;right: -12px} .as_dropdownWrap {position: relative;margin-right:auto;} .as_dropdownWrap .as_seat_text {background: #e1261d;border: none;width: 150px;height: 26px;line-height: 26px;color: #fff;border-radius: 5px;font-size: 12px;font-family: 'fira sans';-webkit-appearance: none;-moz-appearance: none;appearance: none;background-image: url(https://images.news18.com/static_news18/pix/ibnhome/news18/state-2021-election/dropdown-icon.png);background-repeat: no-repeat;background-position: center right 5px;padding-right: 13px;padding-left: 5px; cursor: pointer;} .as_dropdownWrap .as_seat_dropbox {width: 100%;background: #e1261d;position: absolute;right: 0;overflow-x: auto;height: 240px;z-index: 999;display:none;} .as_dropdownWrap .as_seat_dropbox ul{margin:0;padding:0;} .as_dropdownWrap .as_seat_dropbox ul li{list-style:none;} .as_dropdownWrap .as_seat_dropbox ul li a {font-size: 12px;text-decoration: none;color: #fff;padding: 4px 10px;display: block;text-transform: initial;font-family: 'fira sans';font-weight: normal;margin: 0; text-align: left;} .as_dropdownWrap .as_seat_dropbox ul li a:after, .as_dropdownWrap .as_seat_dropbox ul li a:before {content: initial;} .assemblyResultSlider{position: relative;overflow: hidden;} .assemblyResultSlider-in{overflow: hidden;} .assemblyResultSlider ul{display: flex;overflow: hidden;} .assemblyResultSlider ul li{overflow: hidden;box-sizing: border-box;} .assemblyResultSlider ul li a{text-align: center;display: block;font-size: 13px;color: #333;} .assemblyResultTable{width: 100%;background: #f6f6f6;border-collapse: collapse;} .assemblyResultTable tr td{font-family: 'Fira Sans';padding: 5px;border: 1px solid #f6f6f6;font-size:11px;text-transform:uppercase;width: 63px;vertical-align: middle;} .assemblyResultTable tr td:first-child {width: 143px;text-align:left;background:#10162E;color:#fff;} .assemblyResultTable tr:first-child td:nth-child(1){font-weight:500;} .assemblyResultTable tr:first-child td:nth-child(2), .assemblyResultTable tr:first-child td:nth-child(3), .assemblyResultTable tr:first-child td:nth-child(4), .assemblyResultTable tr:first-child td:nth-child(5), .assemblyResultTable tr:first-child td:nth-child(6){font-size:14px;background:#464646;color:#fff; text-align: center !important;} .assemblyResultTable tr:nth-child(2) td:not(:first-child){font-size:18px;color:#464646;font-weight:600; background : #f6f6f6 !important; text-align: center !important;} .assemblyResultTable tr:nth-child(3) td:not(:first-child){font-size:12px;background:#444444;color:#DCDCDC;} .AsResult-bullets{display: flex; justify-content: center;margin:10px 0 13px;} .AsResult-bullets button{border: none;padding: 0px;background: #b0b0b0;width: 16px;height: 4px;border-radius: 20px;margin: 0 3px; cursor: pointer;} .AsResult-bullets button.glide__bullet--active{background:#e1261c;} .ls_searchbox {padding: 10px;position: relative;z-index: 1;background: #F5F5F5;border-bottom: 1px solid #D7D7D7;z-index: 99;} .ls_searchform {width: 100%;position: relative;} .ls_searchinner {display: flex;position: relative;z-index: 1000;background: #ffd200;border: 1px #ffae00 solid;border-radius: 6px;} .ls_searchform input {background: none;border: 0;color: #000;margin-right: auto;padding: 10px 10px;font-size: 13px;width: 100%;font-family: 'fira sans';} .ls_searchform input::placeholder {color: #000;} .ls_searchform button {width: 45px;border: 0;background: #FFAE00;display: flex;justify-content: center;align-items: center;border-radius: 0 6px 6px 0px;}.ls_searchform button img {width: 17px;} .brcountday-candidateslider{position: relative;overflow: hidden; padding: 10px} .brcountday-candidateslider .moreBtn {display: flex;margin-top: 6px;justify-content: center;} .brcountday-candidateslider .moreBtn a {color: #e1261c;font-family: 'Fira Sans';font-size: 12px;font-weight: 600;position:relative;} .brcountday-candidateslider .moreBtn a:after, .brcountday-candidateslider .moreBtn a:before {content: "";position: absolute;} .brcountday-candidateslider .moreBtn a:before {width: 8px;height: 2px;background: #d42b23;top: 7px;right: -12px;} .brcountday-candidateslider .moreBtn a:after {width: 4px;height: 4px;border-bottom: 2px solid #d42b23;border-right: 2px solid #d42b23;transform: rotate(-45deg);top: 5px;right: -12px;} .brcountday-candidateslider-in{overflow: hidden;} .brcountday-candidateslider ul{display: flex;overflow: hidden;} .brcountday-candidateslider ul li a{background: #fff;border: 1px solid #d6d6d6; overflow: hidden; border-radius: 6px; border-bottom: 5px solid #464646; display: flex;padding: 5px 10px; box-sizing: border-box; align-items: center;} .brcountday-candidateslider ul li a figure{width: 60px; height: 60px; border-radius: 100%; flex-shrink: 0; margin-right: 10px;overflow: hidden;} .brcountday-candidateslider ul li a figure img{height: 100%} .brcountday-candidateslider ul li a .candidateslider-details{width:70%;line-height: 0.75em;} .brcountday-candidateslider ul li a .candidateslider-details h3{font-family:'fira sans';font-size: 15px;color: #010101; font-weight: bold;} .brcountday-candidateslider ul li a .candidateslider-details h3 span{display: block; font-weight: normal; color: #474747;padding: 4px 0; font-size: 13px} .brcountdaywrap .brcountday-candidateslider ul li a .candidateslider-details p{color:#464646;font-size: 26px;font-family:'fira sans' !important;font-weight:500;line-height: 22px;} .brcountdaywrap .brcountday-candidateslider ul li a .candidateslider-details p em{background: url(//images.news18.com/static_news18/pix/ibnhome/news18/assembly-election-2019/img/elstatusicon-mobile.png) 0 0 no-repeat; width:23px; height: 23px; display: inline-block; vertical-align: middle; margin:0 5px;} .brcountdaywrap .brcountday-candidateslider ul li a .candidateslider-details p em.status-lost{background-position: 0px -163px;} .brcountdaywrap .brcountday-candidateslider ul li a .candidateslider-details p em.status-won{background-position: 0px -13px;} .brcountdaywrap .brcountday-candidateslider ul li a .candidateslider-details p em.status-leading{background-position: 0px -63px;} .brcountdaywrap .brcountday-candidateslider ul li a .candidateslider-details p em.status-trailing{background-position: 0px -113px;} .brcountdaywrap .brcountday-candidateslider ul li a .candidateslider-details p em.status-na{display: none;} .brcountdaywrap .brcountday-candidateslider ul li a .candidateslider-details p b{text-transform: uppercase;} .brcountday-candidateslider ul li a .candidateslider-details h3 b{ margin-bottom: 5px;font-family: 'fira sans';font-weight:500;} .brcountday-candidateslider ul li a.cndt-won .candidateslider-details p b{color: #004d21;font-family: 'fira sans';font-weight:500;} .brcountday-candidateslider ul li a.cndt-lost .candidateslider-details p b{color: #e1261c} .brcountday-candidateslider ul li a.cndt-leading .candidateslider-details p b{color: #6d9a48} .brcountday-candidateslider ul li a.cndt-trailing .candidateslider-details p b{color: #e6635b} .brcountday-candidateslider ul li a.cndt-loses .candidateslider-details p em{background-position: -23px 0px} .brcountday-candidateslider ul li a.cndt-na .candidateslider-details p{min-height: 23px;} .mb10 {margin-bottom:10px; } .ls_pageheading {font-family: 'Fira Sans Condensed'; text-transform: uppercase; font-size: 22px !important; } .ls_pageheading a {color: #e1261c; text-decoration: none; } .ls_pageheading a span {color: #001d42; position: relative;display: inline-flex;} .ls_pageheading a span:after {content: ''; position: absolute; bottom: 0; width: 100%; height: 3px; background: #e1261c; left: 0; z-index: 8; } #MobileResultTallyWidget .homewidgetTab {display: flex;align-items: center;padding:5px 0 0;background: #F4F4F4;border-bottom: 1px solid #d5d5d5;border-top: 1px solid #d5d5d5;} #MobileResultTallyWidget .homewidgetTab li {padding:0 15px;white-space: nowrap;font-family: 'Fira Sans Condensed', sans-serif !important;font-weight: 500 !important;padding-bottom:0px !important;} #MobileResultTallyWidget .homewidgetTab li a{font-family: 'Fira Sans Condensed', sans-serif !important;font-weight: 500 !important;color: #464646;font-size: 18px !important;text-transform: uppercase;padding-bottom: 5px;position: relative;display: block;} #MobileResultTallyWidget .homewidgetTab li.active a{font-weight: 500;color: #e1261c !important;} #MobileResultTallyWidget .homewidgetTab li.active a::after {content: '';position: absolute;height:3px;width: 100%;background: #e1261c;left: 0;bottom: 0;} #MobileResultTallyWidget .cd-watchlive {border: 1px solid #b6b4b4;background:#f6f6f6;margin: 0 10px 20px 10px;} #MobileResultTallyWidget .cd-watchlive .cd-watchlive-hd {padding: 10px 15px 10px 30px;background: #f6f6f6 url(https://static.hindi.news18.com/ibnkhabar/uploads/2019/05/tv.png) 0 10px no-repeat;position: relative;display: flex;margin: 0 10px;line-height:22px;justify-content:initial !important;} #MobileResultTallyWidget .cd-watchlive .nw-dots {position: absolute;top: 40px;left: 4px;} #MobileResultTallyWidget .cd-watchlive-hd .liveTvTxtWrap{font-family: 'Fira Sans Condensed', sans-serif;text-transform: uppercase;font-weight: 500;color: #464646;margin-right:10px;} #MobileResultTallyWidget .cd-watchlive-hd .liveTvTxtWrap .boldTxt{color:#E1261C;font-size:22px;font-weight:600;} #MobileResultTallyWidget .cd-watchlive-hd .liveTvTxtWrap .boldTxt span{font-size:14px;color:#858585;font-weight: normal;text-transform: initial;} .widgetresultMap {margin:0 10px;margin-bottom: 20px;} .widgetresultMap .tab-content{background-image:url(https://images.news18.com/static_news18/pix/ibnhome/news18/assembly-election-2019/img/jh_mpbg2.jpg);background-size: cover;} ul.rhs_rabing{display:flex;align-items:center;margin-left:10px;} ul.rhs_rabing li.active{background:#E1261D;border-color:#E1261D;} ul.rhs_rabing li.active a{color:#fff;} ul.rhs_rabing li{width:37px;height:26px;background:#E5E5E5 0% 0% no-repeat padding-box;border:1px solid #D5D5D5;border-radius:6px;line-height:23px;text-align:center;margin-right:10px;} ul.rhs_rabing li a{color:#606060;font-size:13px;font-family:'Fira Sans';} .assembly_election_rhs_top{width:100%;display:flex;border-bottom:1px solid #b6b4b4;padding:6px 9px;box-sizing:border-box;background:#F2F2F2 0% 0% no-repeat padding-box;} .assembly_election_rhs_top select{width:60px;height:26px;background:#FFFFFF 0% 0% no-repeat padding-box;border:1px solid #CACACA;border-radius:6px;font-size:14px;color:#E1261D;font-family:'Fira Sans';appearance:none;-webkit-appearance:none;padding:0 5px;} .assembly_election_rhs{border:1px solid #b6b4b4;position:relative;} .assembly_rhs_map{width:100%;padding:10px;box-sizing:border-box;} .assembly_rhs_map img{width:100%;display:block;margin:auto;} .hide{display:none!important;} .map_select:after{content:"";width:5px;height:5px;border-top:1px solid #444;border-left:1px solid #444;position:absolute;right:7px;transform:rotate(45deg );top:8px;transition:all .5s ease-in-out;} .map_select{position:relative;} .map_select:before{content:"";width:5px;height:5px;border-top:1px solid #444;border-left:1px solid #444;position:absolute;right:7px;transform:rotate(-135deg );top:13px;transition:all .5s ease-in-out;} .widgetresultMap svg {width: 100%;height: 247px;margin-bottom: 10px;} .assembly_election_rhs table{width:100%;text-align:center}.assembly_election_rhs table tr th{font-size:14px;color:#fff;font-family:'fira sans';height:25px;vertical-align:middle;border-right:1px #fff solid}.assembly_election_rhs table tr td{height:41px;vertical-align:middle;font-size:18px;color:#fff;font-family:'fira sans';font-weight:600;border-right:1px #fff solid;border-top:1px #fff solid}.assembly_election_rhs table tr th:last-child{border:0}.assembly_rhs_table{width:100%;padding:10px;box-sizing:border-box} .cd-watchlive {overflow: hidden;} .stel-hd{position:relative;font-size:22px;text-transform:uppercase;color:#e1261c;line-height:20px;font-family:'Fira Sans Condensed',sans-serif;margin-bottom:12px;font-weight:600} .stel-hd a{color:#e1261c}.stel-hd span, .stel-hd a span{color:#001d42;border-bottom:3px #e1261c solid;line-height:22px;display:inline-table} .election_graphics{width:100%;background:#F6F6F6 0% 0% no-repeat padding-box;border:1px solid #B6B4B4;margin-bottom:20px} .election_graphics img{width:100%;display:block} .newelec-morechanelwrap{position:relative;z-index:1}.newelec-morechanelhd{background:#e1261c;height:34px;line-height:34px;color:#fff;font-size:14px;padding:0 15px;text-transform:uppercase;position:relative;cursor:pointer}.newelec-morechanellist{padding:0 10px;display:none;position:absolute;top:34px;left:0;right:0;background:rgba(255,255,255,.95);border:1px solid #e1261c;z-index:1}.newelec-morechanellist{padding:0 10px;display:none;position:absolute;top:34px;left:0;right:0;background:rgba(255,255,255,.95);border:1px solid #e1261c;z-index:1}.newelec-morechanellist li{color:#222;font-size:13px;text-transform:uppercase;border-top:1px solid #eee;padding:6px 5px;line-height: 20px;}.newelec-morechanellist li a{color:#222} .newelec-morechanelhd:after{content:"";border-top:7px solid #fff;border-left:5px solid transparent;border-right:5px solid transparent;position:absolute;right:10px;top:12px;transition:all .5s ease-in-out} #MobileResultTallyWidget .ns-d img {width: 100px;} .homeWidgetTallywrapper #playerContainer { height:250px !important; } .dummy-alliance-result {width: 100%;padding : 20px;box-sizing: border-box;} .dummy-alliance-result li {width: 100%;min-height: 150px;box-sizing: border-box;margin-bottom: 20px;background : rgba(0,0,0,0.05) !important;position: relative;border-radius: 10px;overflow: hidden;} .dummy-alliance-result li:nth-child(4) {margin-bottom: 0px;} .dummy-camdidate-slider-result {width: 100%;padding : 20px;box-sizing: border-box;overflow: hidden;} .dummy-camdidate-slider-result li {width: 100%;min-height: 125px;box-sizing: border-box;background : rgba(0,0,0,0.02) !important;position: relative;border-radius: 5px;overflow: hidden;} .dummy-camdidate-slider-result li::before {content: " ";position: absolute;width: 100%;height: 100%;top: 0;left: 0;background: rgba(0,0,0,0.02) !important;animation: mymove 2s infinite !important;} .dummy-map-result {width: 100%;padding : 10px;box-sizing: border-box;overflow: hidden;} .dummy-map-result li {width: 100%;min-height: 80px;box-sizing: border-box;margin-bottom: 20px;background : rgba(0,0,0,0.02) !important;position: relative;border-radius: 5px;overflow: hidden;} .dummy-map-result li:nth-child(1) {min-height: 30px;} .dummy-map-result li:nth-child(2) {min-height: 280px;} .dummy-map-result li:nth-child(3) {min-height: 70px;margin-bottom: 0;} .dummy-map-result li::before {content: " ";position: absolute;width: 100%;height: 100%;top: 0;left: 0;background: rgba(0,0,0,0.02) !important;animation: mymove 2s infinite !important;} @keyframes mymove { from {width: 0;} to {width: 100%;} } #ass-autocomplete-results ul {margin: 0;padding: 0;max-height: 132px;overflow-y: auto;width: 100%;left: 0px;position: absolute;background: #ffd200;z-index: 999;border-left: 2px solid #ffae00;border-right: 2px solid #ffae00;border-bottom: 2px solid #ffae00;} #ass-autocomplete-results ul::-webkit-scrollbar {width: 3px;} #ass-autocomplete-results ul::-webkit-scrollbar-track {box-shadow: inset 0 0 5px grey;border-radius: 10px;} #ass-autocomplete-results ul::-webkit-scrollbar-thumb {background: #333;border-radius: 10px;} #ass-autocomplete-results ul::-webkit-scrollbar-thumb:hover {background: #b30000;} #ass-autocomplete-results ul li {margin: 0;list-style: none;} #ass-autocomplete-results ul li a {padding: 14px 14px 14px 75px;display: block;font-size: 15px;color: #000;background: url(https://images.news18.com/static_news18/pix/ibnhome/news18/assembly-election-2019/img/search-icon1.png) no-repeat;background-position: 20px center;background-size: 17px; font-family: 'Fira Sans', sans-serif;} #ass-autocomplete-results ul li a:hover {background-color:#ffa800;} #ass-autocomplete-results ul {background-color:#ffd200 !important;} .dummy-alliance-result-span { min-height: 20px; width: 75%; background: rgba(0,0,0,0.02) !important; margin: 10px; border-radius: 5px; position: relative; overflow: hidden; } .dummy-alliance-result-span::before, .dummy-alliance-result-div div::before { content: " "; position: absolute; width: 100%; height: 100%; top: 0; left: 0;background: rgba(0,0,0,0.02) !important; animation: mymove 2s infinite !important; } .dummy-alliance-result-div { display: flex; flex-direction: row; justify-content: space-between; margin: 12px; } .dummy-alliance-result-div div{ width: 33%; height: 100px; border-radius: 5px; position: relative; overflow: hidden; background: rgba(0,0,0,0.02) !important; } .dummy-heading-result { width:100%; padding: 10px; box-sizing:border-box; background: rgba(0,0,0,0.05) !important;} .dummy-heading-result div { min-height: 30px; border-radius: 5px; background: rgba(0,0,0,0.05) !important; position: relative;} .dummy-heading-result div::before{ content: " "; position: absolute; width: 100%; height: 100%; top: 0; left: 0;background: rgba(0,0,0,0.02) !important; animation: mymove 2s infinite !important; } .brcountday-tophd {position: relative; z-index: 1;} `; let homePageWidgetHtml = `
${ siteName === "hindi" ? 'देखें' : "Watch" }
${ siteName === "hindi" ? 'Live टीवी' : "Live Now" }
live tv
${ siteName == "hindi" ? '' : "" }
Video Player is loading.
 
Current Time 0:00
LIVE
Duration -:-:-
Loaded: 0%
 
${ languageSpecific ? "" : `

ELECTION GRAPHICS

` }
${languageSpecific ? `
` : ""}
${siteName == "hindi" ? `
` : ""}
`; let mHomePageWidgetHtml = `
${ siteName === "hindi" ? 'देखें' : "Watch" }
${ siteName === "hindi" ? 'Live टीवी' : "Live Now" }
live tv
${ siteName == "hindi" ? '' : "" }
Video Player is loading.
 
Current Time 0:00
LIVE
Duration -:-:-
Loaded: 0%
 
${languageSpecific ? `
` : ""}
${ languageSpecific ? "" : isMobile && siteName == 'lokmat' ? '': `

ELECTION GRAPHICS

` }
${ languageSpecific ? `` : "" }
`; if (!isMobile) { appendStyleTag(homePageWidgetCss); } else { appendStyleTag(mHomePageWidgetCss); } document.getElementById("home-landing-widget").innerHTML = !isMobile ? homePageWidgetHtml : mHomePageWidgetHtml; createStyleLink( "https://fonts.googleapis.com/css2?family=Fira+Sans:wght@400;500;700&display=swap" ); createStyleLink( "https://fonts.googleapis.com/css2?family=Fira+Sans+Condensed:wght@200;400;500;700&display=swap" ); createStyleLink( "https://fonts.googleapis.com/css?family=PT+Serif:400,700&display=swap" ); if (!window.Glide) { var script = document.createElement("script"); script.type = "text/javascript"; script.src = "https://images.hindi.news18.com/ibnkhabar/uploads/assests/js/glide.min.js"; document.getElementsByTagName("head")[0].appendChild(script); } // common tab switch script function elecTabTally(evt, changeDataFn, id,flag) { var i, tablinks; var tabcat = document.getElementById(id); activeTally = flag ? evt.getAttribute("data-value") : evt.currentTarget.getAttribute("data-value"); tabcat.querySelector(".tab-content").innerHTML = eval(changeDataFn + "()"); tablinks = tabcat.querySelectorAll(".tab-links"); for (i = 0; i < tablinks.length; i++) { if(tablinks[i].parentElement.id != "map_ul_list") { tablinks[i].className = tablinks[i].className.replace(" active", ""); } } if(flag) evt.classList.add('active'); else evt.currentTarget.className += " active"; } async function initWidgetHomeLanding() { try { let hlof = await fetch( `https://${siteenvmode}api.news18.com/${siteshortcode}/get_redis/${siteredisprefix}5_state_election_2021` ); hlof = await hlof.json(); bytafl = hlof["5_state_election"]["counting_poll"]["bypoll_tally_flag"] || 0; sponsorHomeFlag = hlof["5_state_election"]["counting_poll"]["counting_tally_sponser_home_flag"] || 0; sponsorMicroFlag = hlof["5_state_election"]["counting_poll"]["counting_tally_sponser_microsite_flag"] || 0; sponsorAd = (window.location.pathname === '/' ? sponsorHomeFlag : sponsorMicroFlag) || 0; } catch (err) { console.error(err); } let switchData = {}, dashboardData = {}; try { switchData = await fetch( "https://election.nw18.com/electiondata/electionjson/five_states_assembly_election_2021/live/switchdata_normal.json" ); switchData = await switchData.json(); } catch (error) { console.log("Switcher fetch error", new Date()); switchData = {}; } try { dashboardData = await fetch( `https://${siteenvmode}api.news18.com/${siteshortcode}/get_redis/${siteredisprefix}ASSEMBLYELECTION2021-Dashboard` ); dashboardData = await dashboardData.json(); _specialurl = dashboardData.special_url; } catch (error) { console.log("Switcher fetch error", new Date()); dashboardData = {}; } try { if(sponsorAd != 0 && !window.adsTriggred) { showLandingAds(); } if(dashboardData && (dashboardData.special_label || dashboardData.special_title)) { appendTitle(dashboardData) } else { document.querySelector(".live-blog-div").innerHTML = ""; } ; rightPanelTab(switchData["seat_party_summary_all"]); candidateSlider(switchData, isMobile, dashboardData); byPollSlider(switchData, isMobile, bytafl); if (languageSpecific) { generateMap(switchData); searchFunc(switchData); } } catch (error) { console.log("switch data fetch error", new Date(), error); } } function toggle(event, key) { const elem = event.target,tableRow = document.querySelectorAll(".is-expanded"); let isExpanded = key === "expand"; if (isExpanded) { elem.innerHTML = "- Collapse"; elem.setAttribute("onclick", "toggle(event,'collapse')"); for (var i = 0; i < tableRow.length; ++i) { tableRow[i].classList.add("active"); } } else { elem.innerHTML = "+ Expand"; elem.setAttribute("onclick", "toggle(event,'expand')"); for (var i = 0; i < tableRow.length; ++i) { tableRow[i].classList.remove("active"); } } } // creates and return html structure inside tab content function createTallyResultHtml() { const languagesKey = _languageMap[siteName] || Object.keys(electionAssemblyData); let languagesKeyLabel = { "west-bengal": "WEST BENGAL", "tamil-nadu": "TAMIL NADU", kerala: "KERALA", assam: "ASSAM", puducherry: "PUDUCHERRY", }; let tallyPages = { 'assam': "/assam-assembly-election-2021/alliance-tally/", 'bengali': "/west-bengal-assembly-election-2021/alliance-tally/", 'tamil': "/tamil-nadu-assembly-election-2021/alliance-tally/", 'puducherry': "/puducherry-assembly-election-2021/alliance-tally/", 'malayalam': "/kerala-assembly-election-2021/alliance-tally/" } let resultTallyWidgetHtml = ""; (languagesKey || []).forEach((lang, ind) => { const langData = electionAssemblyData[lang], { total_seats } = langData; let tallyData = [...langData[activeTally]]; seatsToWin = Math.ceil(Number.parseInt(total_seats.seats) / 2) + 1 || 1; const firstIndex = 0, lastIndex = languagesKey.length - 1; let tableHead = "", winsLeadsHtml = "", changesInResult = "", strikeRate = ""; let tallyDisplayList = tallyData; let activeTallyLabel = siteName === "hindi" && _homeLandingHindiTrans.hindi[`${activeTally}_text`] ? _homeLandingHindiTrans.hindi[`${activeTally}_text`] : activeTally; // start ----> To take only top 4 parties excluding others if ( isMobile && activeTally === "party" && tallyData && tallyData.length > 4 ) { let sortedKeys = tallyData .filter((item) => item.name !== "OTH") .sort(function (a, b) { return a.wonlead - b.wonlead; }); tallyDisplayList = sortedKeys.slice(sortedKeys.length - 4).reverse(); } // end ----> To take only top 4 parties excluding others (tallyDisplayList || []).forEach((data) => { const displayName = data.display_name || data.name; tableHead += `${displayName}`; winsLeadsHtml += ` ${ isMobile ? data.wonlead : activeTally === "alliance" ? `
${data.wonlead}
${data.won} ${siteName === "hindi" && _homeLandingHindiTrans.hindi['win_text'] ? _homeLandingHindiTrans.hindi['win_text'] :"wins"}
` : data.wonlead } `; changesInResult += `${data.changes > 0 ? '+' + data.changes : data.changes}`; const calcStrikeRate = displayName !== "OTH" && Math.round( (data.wonlead / parseInt(data.total_candidate)) * 100 ); strikeRate += displayName === "OTH" ? "-" : `${calcStrikeRate}%${isMobile?'
':' '}(${data.wonlead}/${data.total_candidate})`; }); const percentageText = siteName === "hindi" ? _homeLandingHindiTrans.hindi['percentage_text'] : "*Percentage of wins/leads over contested seats | Voting deferred in 2 seats in West Bengal."; resultTallyWidgetHtml += isMobile ? `

${siteName === "hindi" && _homeLandingHindiTrans.hindi[lang] ? _homeLandingHindiTrans.hindi[lang] : languagesKeyLabel[lang]}

${total_seats.wonlead}/${ total_seats.seats } ${siteName === "hindi" && _homeLandingHindiTrans.hindi['seat_text'] ? _homeLandingHindiTrans.hindi['seat_text'] : "Seats"}

(${seatsToWin} ${siteName === "hindi" && _homeLandingHindiTrans.hindi['toWin_n'] ? _homeLandingHindiTrans.hindi['toWin_n'] : "Seats to Win"})

${ind === 0 ? `+ Expand` : ""}
${tableHead} ${winsLeadsHtml} ${changesInResult} ${strikeRate}
${activeTallyLabel}
${siteName === "hindi" && _homeLandingHindiTrans.hindi['winPlusLead_mobile'] ? _homeLandingHindiTrans.hindi['winPlusLead_mobile'] : "Wins
+
Leads"}
+/- 2016
${siteName === "hindi" && _homeLandingHindiTrans.hindi['strike_rate'] ? _homeLandingHindiTrans.hindi['strike_rate'] : "Strike Rate"}*
${ ind === lastIndex ? `
${percentageText}
` : "" }
` : `

${siteName === "hindi" && _homeLandingHindiTrans.hindi[lang] ? _homeLandingHindiTrans.hindi[lang] : languagesKeyLabel[lang]} ${siteName === "hindi" && _homeLandingHindiTrans.hindi['resuly_tally'] ? _homeLandingHindiTrans.hindi['resuly_tally'] : "Result TALLY"}

${total_seats.wonlead}/${ total_seats.seats } ${siteName === "hindi" && _homeLandingHindiTrans.hindi['seat_text'] ? _homeLandingHindiTrans.hindi['seat_text'] : "Seats"}

(${seatsToWin} ${siteName === "hindi" && _homeLandingHindiTrans.hindi['toWin_n'] ? _homeLandingHindiTrans.hindi['toWin_n'] : "Seats to Win"})

${tableHead} ${winsLeadsHtml} ${changesInResult} ${strikeRate}
${activeTallyLabel}
${siteName === "hindi" && _homeLandingHindiTrans.hindi['winPlusLead'] ? _homeLandingHindiTrans.hindi['winPlusLead'] : "Wins + Leads"}
+/- 2016
${siteName === "hindi" && _homeLandingHindiTrans.hindi['strike_rate'] ? _homeLandingHindiTrans.hindi['strike_rate'] : "Strike Rate"}*
${ ind === lastIndex ? `
${percentageText}
` : "" }
`; }); return resultTallyWidgetHtml; } // callback function returned by jsonp api which accept data as a parameter if (typeof election_assembly_2021_all == "undefined") { function election_assembly_2021_all(data) { cbslist["election_assembly_2021_all"].forEach((func) => func(data)); } } function election_assembly_2021_all_cb_home(data) { electionAssemblyData = data; // Outer alliance container html const resultHtml = isMobile ? `
${createTallyResultHtml()}
` : `${ languageSpecific ? `` : "" }
${createTallyResultHtml()}
`; isMobile ? (document.querySelector(".mobile-tally-result").innerHTML = resultHtml) : (document.querySelector(".panelRight").innerHTML = resultHtml); document.querySelectorAll(".homewidgetTab .tab-links") && document.querySelectorAll('.homewidgetTab .tab-links').forEach(item => { item.addEventListener('click', () => { intervalManager(false); }) }) } function rightPanelTab(url) { loadJsonp(url); } var tabIntervalID = true; function intervalManager(flag, animate, time) { if(flag) tabIntervalID = setInterval(animate, time); else{ clearInterval(tabIntervalID); setTimeout(() => { intervalManager(true,animateFn,10000); }, 1000); } } function animateFn() { console.log("animate called") let temp = activeTally === 'alliance' ? 'party' : 'alliance'; let parent = isMobile ? 'MobileResultTallyWidget' : 'ResultTallyWidget'; let elem = document.querySelector(`#${parent} .tab-links.${temp}`); if(elem) elecTabTally(elem,'createTallyResultHtml',parent,1); } // to auctomatically change tally tabs intervalManager(true,animateFn,10000); async function candidateSlider( switchData, isMobile, nonElectionSiteDashboardData ) { let { live_blog_url_2 } = nonElectionSiteDashboardData || {}; let electionCanditatesData = {}; try { electionCanditatesData = await fetch(switchData["key_candidates_all"]); electionCanditatesData = await electionCanditatesData.json(); } catch (error) { console.log("Exit poll election data fetch error", new Date()); electionCanditatesData = {}; } let statusHindiMap = { WON: "जीते", LOST: "हारे", LEADING: "आगे", TRAILING: "पीछे", }; let siteShortHandCode = { "West Bengal" : "WB", "Assam" : "AS", "Tamil Nadu" : "TN", "Kerala" : "KR", "Puducherry" : "PC", }; let nonElectionSite = !["bengali", "assam", "malayalam", "tamil"].includes( siteName ); // sets the visibility of the widget let siteDomain = window.location.hostname, siteLanguage = "bengali", languagesKeyMap = ["bengali", "tamil", "assam", "malayalam"], tempData = [], keysToLookFor = [ "west-bengal", "assam", "tamil-nadu", "kerala", "puducherry", ]; languagesKeyMap.forEach((lang) => { if (siteDomain.includes(lang)) { siteLanguage = lang; } }); switch (siteName) { case "bengali": tempData.push(electionCanditatesData["west-bengal"]); break; case "tamil": tempData.push(electionCanditatesData["tamil-nadu"]); tempData.push(electionCanditatesData["puducherry"]); break; case "assam": tempData.push(electionCanditatesData["assam"]); break; case "malayalam": tempData.push(electionCanditatesData["kerala"]); break; default: _languageMap[siteLanguage].forEach((elem) => { electionCanditatesData[elem] && tempData.push(electionCanditatesData[elem]); }); break; } // condition which checks for response data to proceed if ((tempData || []).length) { let slideList = ``; if (!isMobile) { (tempData || []).forEach((elem, index) => { // creates slider elements for (const singleData in elem) { let { cand_url, cand_image, cand_name, ABBR, cons_name, state, CANDI_STATUS, cand_url_hindi, candidate_name_hi, cons_name_hindi, state_hindi, color_code, } = elem[singleData]; slideList += `
  • ${cand_name}

    ${ siteName === "hindi" && candidate_name_hi ? candidate_name_hi : cand_name } ${ABBR} | ${ siteName === "hindi" && cons_name_hindi ? cons_name_hindi : cons_name }, ${ siteShortHandCode[state] ? siteShortHandCode[state] : "" }

    ${ siteName == "hindi" ? statusHindiMap[CANDI_STATUS] || "नतीजे बाकी" : CANDI_STATUS == 'NA' ? 'AWAITED' : CANDI_STATUS }

  • `; } }); let cadidatesWidgetHtml = `
    `; document.querySelector( ".brcountday-candidateslider" ).innerHTML = cadidatesWidgetHtml; } else { (tempData || []).forEach((elem, index) => { // creates slider elements for (const singleData in elem) { let { cand_url, cand_image, cand_name, ABBR, cons_name, CANDI_STATUS, cand_url_hindi, candidate_name_hi, cons_name_hindi, color_code, state } = elem[singleData]; slideList += `
  • ${cand_name}

    ${ siteName === "hindi" && candidate_name_hi ? candidate_name_hi : cand_name } ${ABBR} | ${ siteName === "hindi" && cons_name_hindi ? cons_name_hindi : cons_name }, ${ siteShortHandCode[state] ? siteShortHandCode[state] : "" }

    ${ siteName == "hindi" ? statusHindiMap[CANDI_STATUS] || "नतीजे बाकी" : CANDI_STATUS == 'NA' ? 'AWAITED' : CANDI_STATUS }

  • `; } }); let cadidatesWidgetHtml = `

    Key CANDIDATES

    `; document.querySelector( ".brcountday-candidateslider" ).innerHTML = cadidatesWidgetHtml; } if ( (document.getElementsByClassName("brcountday-candidateslider") || []) .length > 0 ) { let interValGlide = setInterval(() => { if (window.Glide) { new Glide(document.querySelector(".brcountday-candidateslider"), { type: 'carousel', autoplay: 2000, perView: isMobile ? 1 : 4, rewind: false, slidesToScroll: 1, breakpoints: { 650: { perView: 1.2, }, }, }).mount(); clearInterval(interValGlide); } }); } } } async function byPollSlider(switchData, isMobile, flag) { if(bypollBgOnlyOnce && flag != 0){ document.querySelector(".brcountday-bypollslider").innerHTML = `
    `; bypollBgOnlyOnce = false; } let byPollData = {}; let byPollCrossData = {}; try { byPollData = await fetch(switchData["by_poll_party_summary"]); byPollData = await byPollData.json(); } catch (error) { console.log("Exit poll election data fetch error", new Date()); byPollData = {}; } try { byPollCrossData = await fetch(switchData["by_poll"]); byPollCrossData = await byPollCrossData.json(); } catch (error) { console.log("Exit poll cross data fetch error", new Date()); byPollCrossData = {}; } // sets the visibility of the widget let siteDomain = window.location.hostname, siteLanguage = "bengali", languagesKeyMap = ["bengali", "tamil", "assam", "malayalam"], tempData = [], keysToLookFor = [ "andhra-pradesh", "gujarat", "karnataka", "kerala", "madhya-pradesh", "maharashtra", "mizoram", "nagaland", "odisha", "rajasthan", "tamil-nadu", "jharkhand", "uttarakhand", "telangana", ], languageMap = { bengali: [ "andhra-pradesh", "gujarat", "karnataka", "kerala", "madhya-pradesh", "maharashtra", "mizoram", "nagaland", "odisha", "rajasthan", "tamil-nadu", "jharkhand", "uttarakhand", "telangana", ], tamil: [ "tamil-nadu", "andhra-pradesh", "gujarat", "karnataka", "kerala", "madhya-pradesh", "maharashtra", "mizoram", "nagaland", "odisha", "rajasthan", "jharkhand", "uttarakhand", "telangana", ], malayalam: [ "kerala", "tamil-nadu", "andhra-pradesh", "gujarat", "karnataka", "madhya-pradesh", "maharashtra", "mizoram", "nagaland", "odisha", "rajasthan", "jharkhand", "uttarakhand", "telangana", ], assam: [ "andhra-pradesh", "gujarat", "karnataka", "kerala", "madhya-pradesh", "maharashtra", "mizoram", "nagaland", "odisha", "rajasthan", "tamil-nadu", "jharkhand", "uttarakhand", "telangana", ], }; languagesKeyMap.forEach((lang) => { if (siteDomain.includes(lang)) { siteLanguage = lang; } }); // prioratizes exit poll based on the site languageMap[siteLanguage].forEach((elem) => { byPollData[elem] && tempData.push(byPollData[elem]); }); //HERE TEMPDATA WILL GO INSTEAD OF BYPOLLDATA WHEN THE PROPER SEQUENCING WILL BE PROVIDED // condition which checks for response data to proceed if ((tempData || []).length) { let slideList = ``, _byPollStateSelect = ``, _listButton = ``, counter = 0; (tempData || []).forEach((elem) => { for (const singleData in elem) { let { state_name, data, count, totalseats, election_type, state_slug, } = elem[singleData]; let nameDataList = ``; let winLeadDataList = ``; data.map((eachData) => { let { colour, name, winlead, election_type } = eachData; nameDataList += `${name}`; winLeadDataList += `${winlead || 0}`; }); slideList += `
  • ${nameDataList} ${winLeadDataList}
    ${ siteName === "hindi" && _homeLandingHindiTrans.hindi[state_slug] ? _homeLandingHindiTrans.hindi[state_slug] : state_name.toUpperCase() }
    ${ siteName === "hindi" ? "उपचुनाव" : "By-Poll" } ${(election_type == "Lok Sabha" ? "(LS)" : election_type == "Assembly" ? "(AS)" : "")}
    (${count}/${totalseats})
  • `; _listButton += ``; counter++; } }); let consinhindi={Tirupati:"तिरुपति","Morva Hadaf":"मोरवा हड़प",Basavakalyan:"बसवकल्याण",Maski:" मास्की",Belgaum:" बेलगाम",Malappuram:"मल्लापुरम",Damoh:"दमोह",Pandharpur:"पंढरपुर",Serchhip:"सेरछिप",Noksen:"नोकसेन",Pipili:"पिपली",Sujangarh:"सुजानगढ़",Sahara:"सहाड़ा",Rajsamand:"राजसमंद",Kanniyakumari:"कन्याकुमारीलोकसभा",Madhupur:"मधुपुर",Salt:"साल्ट","Nagarjuna Sagar":"नगार्जुनसागर"}; if(Object.keys(byPollCrossData).length){ Object.keys(byPollCrossData).map((key) => { let {state_slug, cons_name, cons_id, election_type, state_name} = byPollCrossData[key]; _byPollStateSelect += `
  • ${ siteName === "hindi" && consinhindi[cons_name] && _homeLandingHindiTrans.hindi[election_type] ? consinhindi[cons_name] + " (" + (election_type == "Lok Sabha" ? "LS" : election_type == "Assembly" ? "AS" : "") + ")" : cons_name + " (" + (election_type == "Lok Sabha" ? "LS" : election_type == "Assembly" ? "AS" : "") + ")" }
  • `; }); } if(flag != 0) { if (!isMobile) { let cadidatesWidgetHtml = `
    ${ siteName === "hindi" ? "विस्तृत परिणाम के लिए यहां क्लिक करें" : "Click Here For Detailed Results" }
    Choose Seat
      ${_byPollStateSelect}
    ${_listButton}
    `; document.querySelector( ".brcountday-bypollslider" ).innerHTML = cadidatesWidgetHtml; } else { let byPollWidgetHtml = `
    ${_listButton}
    Choose Seat
      ${_byPollStateSelect}
    DETAILED RESULTS
    `; document.querySelector( ".brcountday-bypollslider" ).innerHTML = byPollWidgetHtml; } } if ( (document.getElementsByClassName("assemblyResultSlider") || []).length > 0 ) { let interValGlide = setInterval(() => { if (window.Glide) { new Glide(document.querySelector(".assemblyResultSlider"), { type: 'carousel', autoplay: 2000, perView: isMobile ? 1 : 3, rewind: true, slidesToScroll: 1, breakpoints: { 600: { perView: isMobile ? 1 : 3, }, }, }).mount(); clearInterval(interValGlide); } }); } if (document.getElementsByClassName("as_seat_text")) { document.getElementsByClassName("as_seat_text")[0] && document.getElementsByClassName("as_seat_text")[0].addEventListener("click", (evnt) => { if(document.getElementsByClassName("as_seat_dropbox")) { let display = document.getElementsByClassName("as_seat_dropbox")[0].style.display; document.getElementsByClassName("as_seat_dropbox")[0].style.display = display == 'block' ? 'none' : 'block'; } }) } } } // MAP let mapper; const mapData = (data, state, place) => { if (data) { Object.keys(data).forEach((elm) => { try { let id = data[elm].id && data[elm].id.toUpperCase(); if (document.getElementById(`${id}`)) { document .getElementById(`${id}`) .setAttribute("fill", data[elm].color || "#333"); document .getElementById(`${id}`) .addEventListener("click", () => redirect(data[elm].cons_url)); } if ( mapper && mapper[state] && !mapper[state].hasOwnProperty([data[elm]["ABBR"]]) && (data[elm]["CANDI_STATUS"] == "WON" || data[elm]["CANDI_STATUS"] == "LEADING") ) { mapper[state][data[elm]["ABBR"]] = {}; mapper[state][data[elm]["ABBR"]]["total"] = 1; mapper[state][data[elm]["ABBR"]]["color"] = data[elm]["color"]; } else if ( data[elm]["CANDI_STATUS"] == "WON" || data[elm]["CANDI_STATUS"] == "LEADING" ) { mapper[state][data[elm]["ABBR"]]["total"] += 1; } } catch (error) { console.log(error); } }); } let sortedKeys = mapper && mapper[state] ? Object.keys(mapper[state]).sort(function (a, b) { return mapper[state][a]["total"] - mapper[state][b]["total"]; }) : []; let dispKeyList = sortedKeys.slice(sortedKeys.length - 4).reverse(); let dispKeys = dispKeyList.map((v) => ({ total: mapper[state][v].total, color: mapper[state][v].color, title: v, })); let others = 0; mapper && mapper[state] && Object.keys(mapper[state]).forEach((val) => { if (!dispKeyList.includes(val)) { others += mapper[state][val].total; } }); (dispKeyList.length || others > 0) && dispKeys.push({ total: others, color: "#000", title: "OTH" }); let head = dispKeys .map((st) => `${st.title}`) .join(""); let body = dispKeys .map((st) => `${st.total}`) .join(""); let tab = `${head}${body}
    `; document.getElementsByClassName(place)[0].innerHTML += dispKeyList.length || others > 0 ? tab : ""; }; const redirect = (target) => { window.location.href = target; }; const showSelectYearMap = () => { let selectBox = document.getElementById("yearChange"); let selectedValue = selectBox.options[selectBox.selectedIndex].value; let maps = document.getElementsByClassName("assembly_rhs_map"); for (map of maps) { if (map.attributes["data-map-id"].value.includes(selectedValue)) { map.classList.remove("hide"); } else { map.classList.add("hide"); } } }; let assam_data = {}, kerala_data = {}, tamilnadu_data = {}, westbengal_data = {}, puducherry_data = {}; const election_const_rhs_assam = (data) => { mapData(data, "assam", "as-map-con"); assam_data = data; }; const election_const_rhs_kerala = (data) => { mapData(data, "kerala", "kr-map-con"); kerala_data = data; }; const election_const_rhs_tamilnadu = (data) => { mapData(data, "tamilnadu", "tn-map-con"); tamilnadu_data = data; }; const election_const_rhs_westbengal = (data) => { mapData(data, "westbengal", "wb-map-con"); westbengal_data = data; }; const election_const_rhs_puducherry = (data) => { mapData(data, "puducherry", "pc-map-con"); puducherry_data = data; }; function elecTab(evt, cityName, id) { var i, tabcontent, tablinks; var tabcat = document.getElementById(id); tabcontent = tabcat.querySelectorAll(".tab-content"); for (i = 0; i < tabcontent.length; i++) { tabcontent[i].classList.add("hide"); } tablinks = tabcat.querySelectorAll(".tab-links"); for (i = 0; i < tablinks.length; i++) { tablinks[i].className = tablinks[i].className.replace(" active", ""); } var dynamiclass = document.querySelectorAll("." + cityName); for (l = 0; l < dynamiclass.length; l++) { dynamiclass[l].classList.remove("hide"); } evt.currentTarget.className += " active"; } function generateMap(switchData) { mapper = { assam: {}, kerala: {}, tamilnadu: {}, westbengal: {}, puducherry: {}, }; let struct = ` ${ !isMobile ? `
    ${siteName === "hindi" && _homeLandingHindiTrans.hindi['assembly_headline_text'] ? _homeLandingHindiTrans.hindi['assembly_headline_text'] : "Assembly ELECTION RESULTS"} ON MAPS
    ` : `

    ${siteName === "hindi" && _homeLandingHindiTrans.hindi['assembly_headline_text'] ? _homeLandingHindiTrans.hindi['assembly_headline_text'] : "Assembly ELECTION RESULTS"} ON MAPS

    ` }
    `; let target = document.querySelector(".homeWidgetMap") || document.querySelector(".widgetresultMap"); let analyticSection = document.querySelector(".analytic-section"); if (target) { target.innerHTML = struct; } let __siteMap = { 'hindi': 'west-bengal', 'tamil': 'tamil-nadu', 'malayalam': 'kerala', 'assam' : 'assam' } if (analyticSection) { analyticSection.innerHTML = `
    2021 ASSEMBLY ELECTION
    ANALYTICS CENTRE
    `; } loadJsonp(switchData['cons_list_with_status'].replace(/:state:/gi, 'assam')); loadJsonp(switchData['cons_list_with_status'].replace(/:state:/gi, 'kerala')); loadJsonp(switchData['cons_list_with_status'].replace(/:state:/gi, 'tamilnadu')); loadJsonp(switchData['cons_list_with_status'].replace(/:state:/gi, 'westbengal')); loadJsonp(switchData['cons_list_with_status'].replace(/:state:/gi, 'puducherry')); } function initLiveTv() { if (typeof VIDGYOR !== "undefined" && !window.PLAYERLOADED) { var posterImage = ""; var videoUrl = ""; let channelListHome = { lokmat: "news18lokmat", bengali: "news18bangla", malayalam: "news18kerala", kannada: "news18kannada", tamil: "news18tamil", gujarati: "news18gujrathi", telugu: "cnnibn", hindi: "news18india", kerala: "news18kerala", urdu: "news18urdu", punjabi: "news18haryana", punjab: "news18haryana", odia: "news18odia_https", assam: "news18assam_hindinews18" }; var channelName = channelListHome[siteName] || "cnnibn"; var isMute = true; var isAutoplay = false; VIDGYOR.loadPlayer(posterImage, videoUrl, channelName, isMute, isAutoplay); window.PLAYERLOADED = true; // VIDGYOR.loadPlayer(false,true); // VIDGYOR.loadPlayer('CNNIBN',true,false); } } try { const __elinit = () => { if (document.getElementById("home-landing-widget")) { setTimeout(() => { initWidgetHomeLanding(); }, 2000); if (isMobile) { window.addEventListener("scroll", function func() { let pageYOffset = window.pageYOffset; if (pageYOffset > 20) { // Remove listener scriptLoaderHomeLanding( "https://static.vidgyor.com/live/midroll/js/vidgyor_livemidroll_n18.min.js", initLiveTv ); window.removeEventListener("scroll", func); } }); } else { setTimeout(() => { scriptLoaderHomeLanding( "https://static.vidgyor.com/live/midroll/js/vidgyor_livemidroll_n18.min.js", initLiveTv ); }, 1000); } } }; setTimeout(() => { if (document.readyState === "complete") { __elinit(); } else { window.addEventListener("load", __elinit); } }, 1000); } catch (error) { console.log(error); } // Search function async function searchFunc(switchData) { let partyPages = { 'hindi': '/assembly-election-2021/west-bengal-chunav/party-detail/', 'bengali': '/west-bengal-assembly-election-2021/party-detail/', 'assam': '/assam-assembly-election-2021/party-detail/', 'tamil':'/puducherry-assembly-election-2021/party-detail/', 'kerala': '/kerala-assembly-election-2021/party-detail/' } let siteToName = { 'bengali': (name) => name == 'westbengal' || name == 'west-bengal', 'tamil': (name) => name == 'tamilnadu' || name == 'puducherry' || name == 'tamil-nadu', 'malayalam': (name) => name == 'kerala', 'assam': (name) => name == 'assam' } let beautfiyState = (name = " ") => { if(siteName == 'hindi' && _homeLandingHindiTrans.hindi[name]) { return _homeLandingHindiTrans.hindi[name]; } if(name == 'westbengal' || name == 'west-bengal') return 'West Bengal'; if(name == 'tamilnadu' || name == 'tamil-nadu') return 'Tamil Nadu'; return name[0].toUpperCase() + name.slice(1) } let {top_parties_details_all, key_candidates_all} = switchData; let partyData = await fetch(top_parties_details_all); partyData = await partyData.json(); if(partyData) { Object.keys(partyData).filter(state => siteName == 'hindi' ? true : siteToName[siteName](state)).forEach(state => { Object.keys(partyData[state]).forEach((party) => { statesData.push({ 'state': state, 'show': `${party} - ${siteName == 'hindi' ? partyData[state][party].party_full_name_hindi : partyData[state][party].party_full_name} ${siteName == 'hindi' ? `(${beautfiyState(state)})` : ''}`, 'search': party, 'searchtwo': partyData[state][party].party_full_name, 'url': `${partyPages[siteName]}${(party || "").toLocaleLowerCase()}/` }) }) }) } let canData = await fetch(key_candidates_all); canData = await canData.json(); if(canData) { Object.keys(canData).filter(state => siteName == 'hindi' ? true : siteToName[siteName](state)).forEach(state => { Object.keys(canData[state]).forEach((can) => { statesData.push({ 'state': state, 'show': `${canData[state][can].cand_name} ${siteName == 'hindi' ? `(${beautfiyState(state)})` : ''}`, 'search': canData[state][can].cand_name, 'searchtwo': canData[state][can].cand_name, 'url': siteName == 'hindi' ? canData[state][can].cand_url_hindi : canData[state][can].cand_url }) }); }) } let conslistdata = []; let constPage = { 'hindi': { 'kerala': "/assembly-election-2021/kerala-chunav/constituency-result/", 'bengal': "/assembly-election-2021/west-bengal-chunav/constituency-result/", 'assam': "/assembly-election-2021/assam-chunav/constituency-result/", 'puducherry': "/assembly-election-2021/puducherry-chunav/constituency-result/", 'tamil': "/assembly-election-2021/tamil-nadu-chunav/constituency-result/" }, 'assam': '/assam-assembly-election-2021/constituency-result/', 'bengal': '/west-bengal-assembly-election-2021/constituency-result/', 'tamil': '/tamil-nadu-assembly-election-2021/constituency-result/', 'malayalam': '/kerala-assembly-election-2021/constituency-result/' } function searchconsadder(name, data) { Object.keys(data).forEach(item => { statesData.push({ 'state': '', 'show': data[item], 'search': data[item], 'searchtwo': data[item], 'url': (siteName == 'hindi' ? constPage['hindi'][name] : constPage[siteName]) + data[item].toLowerCase().replaceAll(" " , "-") + "-" + item + "/" }) }) } if(siteName == 'assam' || siteName == 'hindi') { let data = await fetch(switchData['cons_list'].replace(/:state:/gi, 'assam')); data = await data.json(); searchconsadder('assam', data); } if(siteName == 'malayalam' || siteName == 'hindi') { let data = await fetch(switchData['cons_list'].replace(/:state:/gi, 'kerala')); data = await data.json(); searchconsadder('kerala', data); } if(siteName == 'tamil' || siteName == 'hindi') { let data = await fetch(switchData['cons_list'].replace(/:state:/gi, 'tamilnadu')); data = await data.json(); searchconsadder('tamil', data); data = await fetch(switchData['cons_list'].replace(/:state:/gi, 'puducherry')); data = await data.json(); searchconsadder('puducherry', data); } if(siteName == 'bengal' || siteName == 'hindi') { let data = await fetch(switchData['cons_list'].replace(/:state:/gi, 'westbengal')); data = await data.json(); searchconsadder('bengal', data); } let searchedResult = document.getElementById("ass-autocomplete-results"); let searchInput = document.querySelector(".assembly-search"); searchInput.addEventListener("keyup", function () { const matches = searching(statesData, this.value); if (!matches.length || this.value === "") searchedResult.innerHTML = ""; else { const html = matches .map((match) => { const displayName = `${match.show}${ match.type ? " - " + match.type : "" }`; return `
  • ${displayName}
  • `; }) .join(""); searchedResult.innerHTML = ``; } }); } function searching(statesData, word) { return statesData.filter((state)=> { const regex = new RegExp('^' + word, "gi"); return state["search"].match(regex) || state["searchtwo"].match(regex); }); } function appendTitle(dashboardData) { const titleElem = `

    ${dashboardData.special_label||""}
    ${dashboardData.special_title||""}

    `; document.querySelector(".live-blog-div").innerHTML = titleElem; } try { let tar = document.getElementsByClassName("newelec-morechanelhd"); let star = document.getElementsByClassName("newelec-morechanellist"); if (tar && tar[0] && star && star[0]) { tar[0].addEventListener("click", (event) => { event.target.classList.toggle("adcls-newelec-morechanelhd"); star[0].style.display = star[0].style.display == "block" ? "none" : "block"; }); } } catch (error) { // error } function showLandingAds() { try { let maps = { bengali: "BENG", assam: "ASAM", hindi: "HIND", malayalam: "MLY", tamil: "TAM", telugu: "TLG", }; let adName = siteName; let adCode; let adWidth = isMobile ? 340 : 1244; let adHeight = isMobile ? 100 : 60; if (maps[adName]) { if (isMobile) { adCode = "/1039154/NW18_" + maps[adName] + "_PWA/NW18_" + maps[adName] + "_ELECTIONS_PWA/NW18_" + maps[adName] + "_ELECTIONS_PWA_AS/NW18_" + maps[adName] + "_ELECT_AS_PWA_ROS_Strip_340"; } else { adCode = "/1039154/NW18_" + maps[adName] + "_Desktop/NW18_" + maps[adName] + "_ELECTIONS/NW18_" + maps[adName] + "_ELECTIONS_AS/NW18_" + maps[adName] + "_ELECT_AS_ROS_Strip_1244"; } } window.googletag = window.googletag || { cmd: [] }; googletag.cmd.push(function () { if (adCode) { googletag .defineSlot(adCode, [[adWidth, adHeight]], "home-landing-promo-ad") .addService(googletag.pubads()); } else { if (isMobile) { googletag .defineSlot( `/1039154/NW18_HIND_PWA/NW18_HIND_ELECTIONS_PWA/NW18_HIND_ELECTIONS_PWA_AS/NW18_HIND_ELECT_AS_PWA_ROS_Strip_340`, [[adWidth, adHeight]], "home-landing-promo-ad" ) .addService(googletag.pubads()); } else { googletag .defineSlot( `/1039154/NW18_HIND_Desktop/NW18_HIND_ELECTIONS/NW18_HIND_ELECTIONS_AS/NW18_HIND_ELECT_AS_ROS_Strip_1244`, [[adWidth, adHeight]], "home-landing-promo-ad" ) .addService(googletag.pubads()); } } googletag.enableServices(); googletag.display("home-landing-promo-ad"); }); window.adsTriggred = true; } catch(error) { console.log(error) } }