Categories
allPost

Digital India

55 people 👁️ing this randomly


Digital India – Transforming India <![CDATA[ /* <![CDATA[ var config_push_notification = { apiKey: "AIzaSyCvvi0uYAdkrZeOne3JfPgzuazy",//"AIzaSyCvvi0uYAdkrZeOne3JfPgzuazy-ihrNeY", authDomain: "moonlit-shadow-833.firebaseapp.com",//"moonlit-shadow-833.firebaseapp.com", databaseURL: "https://moonlit-shadow-833.firebaseio.com",//"https://moonlit-shadow-833.firebaseio.com", projectId: "moonlit-shadow-833",//"moonlit-shadow-833", storageBucket: "moonlit-shadow-833.appspot.com",//"moonlit-shadow-833.appspot.com", messagingSenderId: "413982092185",//"413982092185", }; firebase.initializeApp(config_push_notification); const fire_messaging = firebase.messaging(); fire_messaging .requestPermission() .then(function () { return fire_messaging.getToken() }) .then(function(token) { console.log('token isssss '+token); //sendSubscriptionToServer(token,pushrequesturl); var api_url = "https://transformingindia.mygov.in/wp-admin/admin-ajax.php"; jQuery.post(api_url, {'action':'sendpushnotification',registration_id: token}, function(data, textStatus, xhr) { var res = jQuery.parseJSON(data); if(res.status=="true"){ jQuery('#web_notification').hide(); }else{ console.log("there is some error to process"); } }); }) .catch(function (err) { console.log("Unable to get permission to notify.", err); }); fire_messaging.onMessage(function(payload) { var data = payload.data; data = jQuery.parseJSON(data); var messageHtml ="“+data.title+”“+data.body+””; jQuery(‘#web_notification_message’).append(messageHtml); }); ]]> logo

Try Adsterra Earnings, it’s 100% Authentic to make money more and more.

Try Adsterra Earnings, it’s 100% Authentic to make money more and more.

Scroll Up 0){ $(‘#metaslider’).addClass(‘flexslider’); // theme/plugin conflict avoidance $(‘#metaslider’).flexslider({ slideshowSpeed:3000, animation: “slide”, controlNav:true, directionNav:true, pauseOnHover:true, direction:”horizontal”, reverse:false, animationSpeed:600, prevText:””, slideshow:true }); } ]]> = 767){ var headH = jQuery(‘.header’).height(); jQuery(“body”).css(‘paddingTop’,headH); } } jQuery(window).load(function(){ hfix(); }) jQuery(window).resize(function(){ hfix(); }) jQuery(document).ready(function($) { hfix(); $(‘input#user-submitted-post’).click (function() { var error = 0; var comment = $(‘.usp-textarea’).val(); var ytubeurl = $(‘#youtube-url’).val(); var re = /^[ A-Za-z0-9_@./#&,+-]*$/; var youtubeurl = /^(?:https?://)?(?:www.)?(?:youtu.be/|youtube.com/(?:embed/|v/|watch?v=|watch?.+&v=))((w|-){11})(?:S+)?$/; jQuery(‘.parsley-alphabets’).remove(); jQuery(‘.parsley-youtubeurl’).remove(); if(!(re.test(comment))){ error = 1; jQuery(‘.usp-textarea’).after(‘Comment Should have only alphabets, Numbers, #, @, – and .’); jQuery(‘.usp-textarea’).focus(); return false; } if(ytubeurl !== “”){ if(!(youtubeurl.test(ytubeurl))){ error = 1; jQuery(‘#youtube-url’).after(‘Wrong Youtube Url Format’); jQuery(‘#youtube-url’).focus(); return false; } } if (error) { return false; } else { return true; } }); }); jQuery(document).ready(function() { var elem = jQuery(“.usp-textarea”); var max_len = 500; elem.attr(‘maxlength’,max_len); elem.keyup(function(e){ var entered_chars = jQuery(this).val().length ; if(entered_chars >= max_len ){ elem.css(“background-color”, “pink”); jQuery(“.word-left p span.text-limit-msg”).text(“Maximum number of character reached :”); jQuery(“.word-left p span.text-limit-msg”).css(“color” ,”red”); } if(entered_chars 1024 ? false : true }); jQuery(‘.flexsliderspeeches’).flexslider({ animation: “slide”, slideshow: false, selector: ‘.main-item > .item-info’, controlNav: false }); jQuery(“.search-btn”).click(function () { jQuery(‘.main-search #quick-search’).toggle(500); }); jQuery(“.comment-count a”).on(‘click’, function() { jQuery(document).ajaxComplete(function() { jQuery(‘#colorbox .entry-content .citizen_videos’).next(‘.image-gallery’).addClass(‘pic_after_video’); }); }) jQuery(‘.entry-content .citizen_videos’).next(‘.image-gallery’).addClass(‘pic_after_video’); jQuery(document).ajaxComplete(function() { jQuery(‘.entry-content .citizen_videos’).next(‘.image-gallery’).addClass(‘pic_after_video’); jQuery(‘.fancybox’).on(‘click’, function(event){ event.preventDefault(); // jQuery.fancybox(this); jQuery(‘this’).fancybox(); }) /*jQuery(‘.fancybox-iframe’).on(‘click’, function(event){ event.preventDefault(); jQuery.fancybox(this); })*/ }); // mobile menu click jQuery(‘.res_menu’).click(function() { jQuery(‘.main-menu-header’).slideToggle(); }) //smooth scroll to section if(jQuery(‘.smooth-scroll’).length){ jQuery(‘.smooth-scroll a’).click(function(event) { //var headH1 = jQuery(‘.page_link_btn’).offset().top+jQuery(‘.page_link_btn’).height(); var target = this.hash; var pos1 = jQuery(target).offset().top ; var headH1 = jQuery(‘.header-nav’).height(); jQuery(‘html, body’).animate({ scrollTop: pos1 -headH1 }); jQuery(‘.smooth-scroll a’).removeClass(‘active’); jQuery(this).addClass(‘active’); }) } // floating menu on scroll if (jQuery(‘.page_link_btn’).length) { var headH = jQuery(‘.page_link_btn’).offset().top +jQuery(‘.page_link_btn’).height(); jQuery(window).scroll(function() { var check_w = jQuery( document ).width() ; var scroll = jQuery(window).scrollTop(); if (scroll > headH) { jQuery(“.page_link_btn”).addClass(“sticky”); jQuery(“.floating-menu”).show(); }else{ jQuery(“.page_link_btn”).removeClass(“sticky”); jQuery(“.floating-menu”).hide(); } }); } jQuery(‘.floating-menu’).click(function() { jQuery(‘.page_link_btn’).slideToggle(); }) }); function mission(){ var $container = jQuery(‘.massonaryjs,.inner-infographics, .inner_testimonials, .inner_live_evets, .mediacoverage’); $container.imagesLoaded(function(){ $container.masonry({ itemSelector: ‘.post’, isAnimated: true, isResizable:true }); }); $container.infinitescroll({ navSelector : ‘.nav-links’, // selector for the paged navigation nextSelector : ‘.nav-links a’, // selector for the NEXT link (to page 2) itemSelector : ‘.post’, // selector for all items you’ll retrieve loading: { // finishedMsg: ‘No more pages to load.’, img: ‘https://transformingindia.mygov.in/wp-content/themes/transforming/assets/images/more.gif’ } }, // trigger Masonry as a callback function( newElements ) { // hide new items while they are loading var $newElems = jQuery( newElements ).css({ opacity: 0 }); // ensure that images load before adding to masonry layout $newElems.imagesLoaded(function(){ // show elems now they’re ready $newElems.animate({ opacity: 1 }); $container.masonry( ‘appended’, $newElems, true ); jQuery(newElements).find(‘a[rel=infogroup]’).fancybox({ ‘transitionIn’ : ‘elastic’, ‘transitionOut’ : ‘elastic’ }); }); } ); jQuery(‘.search-results .site-main’).infinitescroll({ navSelector : ‘.nav-links’, // selector for the paged navigation nextSelector : ‘.nav-links a’, // selector for the NEXT link (to page 2) itemSelector : ‘.post ‘ // selector for all items you’ll retrieve }) } jQuery(window).load(function(){ jQuery(‘.main-header’).css(‘paddingBottom’,jQuery(‘.header-nav’).height()); mission(); // header fixed on scroll var bannerH = jQuery(‘.main-header’).height(); jQuery(window).scroll(function() { var scrollVal = jQuery(window).scrollTop(); if (scrollVal > bannerH + 50) { jQuery(‘body’).addClass(‘fixed’); } else { jQuery(‘body’).removeClass(‘fixed’); } }) // scroll to top var ph = jQuery(document).height(); wh =jQuery(window).height(); jQuery(window).scroll(function () { if (jQuery(this).scrollTop() > (ph-wh)/2) { jQuery(‘.scroll-up’).fadeIn(); } else { jQuery(‘.scroll-up’).fadeOut(); } }); jQuery(‘.scroll-up’).click(function () { jQuery(“html, body”).animate({ scrollTop: 0 }, 600); return false; }); }); if(jQuery(‘.flexsliderinfo’).length || jQuery(‘.flexsliderupcoming’).length || jQuery(‘.flexsliderspeeches’).length){ (function() { // store the slider in a local variable var $window = jQuery(window), flexslider; // tiny helper function to add breakpoints function getGridSize() { return (window.innerWidth article.post’, controlNav: false, itemWidth: 390, itemMargin: 30, minItems : 1, maxItems : 3, move: 1, minItems: getGridSize(), // use function to pull in initial value maxItems: getGridSize() // use function to pull in initial value }); }); // check grid size on resize event $window.resize(function() { var gridSize = getGridSize(); flexslider.vars.minItems = gridSize; flexslider.vars.maxItems = gridSize; }); }()); } if(jQuery(‘.flexslidercat’).length){ (function() { // store the slider in a local variable var $window = jQuery(window), flexslider = { vars:{} }; // tiny helper function to add breakpoints function getGridSize() { return (window.innerWidth a),area[href*=”.jpeg”]:not(.nolightbox),a[href*=”.png”]:not(.nolightbox,li.nolightbox>a),area[href*=”.png”]:not(.nolightbox)’; jQuery(fb_IMG_select).addClass(‘fancybox image’); var fb_IMG_sections=jQuery(‘.gallery,.wp-block-gallery,.tiled-gallery,.wp-block-jetpack-tiled-gallery’); fb_IMG_sections.each(function(){jQuery(this).find(fb_IMG_select).attr(‘rel’,’gallery-‘+fb_IMG_sections.index(this));}); jQuery(‘a.fancybox,area.fancybox,li.fancybox a’).each(function(){jQuery(this).fancybox(jQuery.extend({},fb_opts,{‘transitionIn’:’elastic’,’easingIn’:’easeOutBack’,’transitionOut’:’elastic’,’easingOut’:’easeInBack’,’opacity’:false,’hideOnContentClick’:false,’titleShow’:false,’titlePosition’:’over’,’titleFromAlt’:true,’showNavArrows’:true,’enableKeyboardNav’:true,’cyclic’:false}))}); /* iFrame */ jQuery(‘a.fancybox-iframe,area.fancybox-iframe,li.fancybox-iframe a’).each(function(){jQuery(this).fancybox(jQuery.extend({},fb_opts,{‘type’:’iframe’,’width’:’55%’,’height’:’100%’,’padding’:0,’titleShow’:false,’titlePosition’:’float’,’titleFromAlt’:false,’allowfullscreen’:false}))});}; jQuery(‘a.fancybox-close’).on(‘click’,function(e){e.preventDefault();jQuery.fancybox.close()}); }; var easy_fancybox_auto=function(){setTimeout(function(){jQuery(‘#fancybox-auto’).trigger(‘click’)},1000);}; jQuery(easy_fancybox_handler);jQuery(document).on(‘post-load’,easy_fancybox_handler); jQuery(easy_fancybox_auto); /* ]]]]> */ ]]>

Source

Published By

allaboutian
allaboutian
open profile for all

Dillard's - The Style of Your Life.

By allaboutian

open profile for all

Related Posts

nytimes.com

27 people 👁️ing this randomly nytimes.com Try Adsterra Earnings, it’s 100% Authentic to make money…

Access Denied

11 people 👁️ing this randomly Access Denied You don’t have permission to access “http://www.weforum.org/stories/2024/01/how-india-can-seize-its-moment-to-become-the-world-s-third-largest-economy/” on…

Access Denied

18 people 👁️ing this randomly Access Denied You don’t have permission to access “http://www.weforum.org/stories/2023/06/india-unified-payment-interface-impact/” on…