1var $ = jQuery; 2var currenturl = window.location.href; 3const fulluUrl = window.location.href; 4currenturl = currenturl.replace('http://wpdev', ''); 5currenturl = currenturl.replace('https://publicdev.delge.net', ''); 6currenturl = currenturl.replace('https://onstrategyhq.com', ''); 7 8var imageDiv = document.getElementById("woocommerceStep"); 9 10 11 12//Function to get URL parameters 13function getUrlVars() { 14 var vars = {} 15 var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function (m, key, value) { 16 vars[key] = value 17 }) 18 return vars; 19}; 20 21var isInViewport = function (elem) { 22 var bounding = elem.getBoundingClientRect() 23 return ( 24 bounding.top >= 0 && 25 bounding.left >= 0 && 26 bounding.bottom <= (window.innerHeight || document.documentElement.clientHeight) && 27 bounding.right <= (window.innerWidth || document.documentElement.clientWidth) 28 ) 29} 30 31var isMobile = ('ontouchstart' in document.documentElement && navigator.userAgent.match(/Mobi/)) 32 33//New and improved anchor link function 34/* anchor tag smooth scroll */ 35$(document).ready(function () { 36 $('.new-anchor').click(function () { 37 console.log('click') 38 if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) { 39 var target = $(this.hash) 40 target = target.length ? target : $('[name=' + this.hash.slice(1) + ']') 41 if (target.length) { 42 if (!isMobile) { 43 $('html,body').animate({ 44 scrollTop: target.offset().top - 100 45 }, 1000) 46 } else { 47 $('html,body').animate({ 48 scrollTop: target.offset().top - 50 49 }, 1000) 50 } 51 return false 52 } 53 } 54 }) 55}) 56 57function freeDrive2() { 58 //event.preventDefault(); 59 var driveUrl = window.location.href; 60 var urlcheck = "onstrategyhq"; 61 var plan_name = document.getElementById('ftd_signup_value2').value; 62 if (plan_name == null || plan_name == "i.e. Acme Strategic Plan 2018-2022") { 63 alert("Please enter your plan name.") 64 } else if (plan_name !== null || plan_name !== "") { 65 plan_name = plan_name.split(' ').join('_'); 66 plan_name = plan_name.split(',').join('|'); 67 plan_name = plan_name.split('\'').join('^'); 68 plan_name = plan_name.split('&').join('>'); 69 console.log(plan_name); 70 if (driveUrl.includes(urlcheck) == true) { 71 window.location = "https://app.mystrategicplan.com/signup/?plan=2tier_workgroup_mvp_quarterly&rrcf=1&plan_name=" + plan_name; 72 } else { 73 window.location = "https://mspdev.delge.net/signup/?plan=2tier_workgroup_mvp_quarterly&rrcf=1&plan_name=" + plan_name; 74 } 75 } 76} 77 78function checkVisible(elm, evalType) { 79 evalType = evalType || "visible"; 80 81 var vpH = $(window).height(), // Viewport Height 82 st = $(window).scrollTop(), // Scroll Top 83 y = $(elm).offset().top, 84 elementHeight = $(elm).height(); 85 86 if (evalType === "visible") return ((y < (vpH + st)) && (y > (st - elementHeight))); 87 if (evalType === "above") return ((y < (vpH + st))); 88} 89function faq_schema() { 90 const title = document.title 91 const url = window.location.href 92 let structuredDataText = '{"@context": "https://schema.org", "@type": "FAQPage","mainEntity": [' 93 const elements = document.getElementsByClassName('faq') 94 const faqLength = elements.length; 95 $('.faq').each(function (index) { 96 if (elements.length > 0) { 97 const question = $(this).children('.faq-title').text().trim().replace(/\s{2,}/g, '').replace(/(\r\n|\n|\r)/gm, '') 98 const answer = $(this).children('.faq-content').text().trim().replace(/\s{2,}/g, '').replace(/(\r\n|\n|\r)/gm, '') 99 structuredDataText +='{"@type": "Question",' 100 structuredDataText +='"name": "' + question + '",' 101 structuredDataText +='"acceptedAnswer": {"@type": "Answer","text": "' + answer + '"}}' 102 if (index !== (faqLength - 1)) {
103 structuredDataText +=',' 104 } 105 } 106 }) 107 structuredDataText +=']}' 108 const script = document.createElement('script') 109 script.setAttribute('type', 'application/ld+json') 110 script.setAttribute('class', 'faq-schema') 111 script.textContent = structuredDataText 112 document.head.appendChild(script) 113} 114const faqElements = document.getElementsByClassName('faq') 115if (faqElements.length > 0) { 116 faq_schema() 117} 118// Toggle main nav on mobile 119$(document).ready(function () { 120 $('.hamburger-menu').click(function () { 121 $('body').toggleClass("no-scroll") 122 $('.mobile-nav').toggleClass("active") 123 }) 124 $("li.newNav").click(function () { 125 $(this).toggleClass("sub-active") 126 }) 127}) 128 129// New nav classes on click 130function newNav(className) { 131 $("." + className).toggleClass("flex") 132} 133 134/* logo bar nav items */ 135$('.li-logo').click(function () { 136 var listItem = this.className.split(' ') 137 slug = listItem[1] 138 $('.li-logo').removeClass("logo-nav-active") 139 $('.logo-content').removeClass("logo-nav-active") 140 $(this).addClass("logo-nav-active") 141 $('.' + slug).addClass("logo-nav-active") 142}); 143 144function highLight() { 145 var section = getUrlVars()["id"] 146 if ( currenturl.includes('/okr/') || currenturl.includes('/okr-cheat-sheet/') ) { 147 $('.nav-okrs').addClass('active') 148 } 149 if (currenturl.includes('/services/')) { 150 $('.nav-services').addClass('active') 151 } 152 if (currenturl.match('/services/complete-strategic-plan-facilitation/') || currenturl.match('/services/strategic-plan-coach/') || currenturl.match('/services/strategysprint/')) { 153 $('.nav-strategy').addClass('active') 154 } 155 if (currenturl.includes('/strategic-planning-software/')) { 156 $('.nav-software').addClass('active') 157 } 158 if (currenturl.includes('/strategic-planning-course/')) { 159 $('.nav-software').addClass('active') 160 } 161 if (currenturl.match('/customers/')) { 162 $('.nav-clients').addClass('active') 163 } 164 /* if (currenturl.includes('/okr/software/')) { 165 $('.nav-software').addClass('active') 166 }*/ 167 if (currenturl.includes('/tour/')) { 168 $('.nav-software').addClass('active') 169 } 170 if (currenturl.includes('/pricing/')) { 171 $('.nav-pricing').addClass('active') 172 } 173 if (currenturl.includes('/pricing/')) { 174 $('.nav-pricing').addClass('active') 175 } 176 if (currenturl.includes('/about-us/')) { 177 $('.nav-about').addClass('active') 178 } 179 if (currenturl.includes('/resources/')) { 180 $('.nav-resources-wk').addClass('active') 181 } 182} 183 184 185function softwareNav() { 186 if (currenturl.match('/strategic-planning-software/strategic-alignment/')) { 187 $('.bignav.align').addClass('active') 188 } else if (currenturl.match('/strategic-planning-course/')) { 189 $('.bignav.design').addClass('active') 190 } else if (currenturl.match('/okr/software/')) { 191 $('.bignav.execute').addClass('active') 192 } else if (currenturl.match('/strategic-planning-software/reports/')) { 193 $('.bignav.report').addClass('active') 194 } else if (currenturl.match('/strategic-planning-software/strategic-planning-dashboard/')) { 195 $('.bignav.dashboard').addClass('active') 196 } else if (currenturl.match('/strategic-planning-software/integrations/')) { 197 $('.bignav.integrate').addClass('active') 198 } else if (currenturl.match('/strategic-planning-software/community/')) { 199 $('.bignav.community').addClass('active') 200 } else if (currenturl.match('/strategic-planning-software/partner-program/')) { 201 $('.bignav.partner').addClass('active') 202 } 203} 204 205function servicesNav() { 206 if (currenturl.match('/strategic-planning-facilitator/')) { 207 $('.mednav.facilitate').addClass('active') 208 } else if (currenturl.match('/strategy-consulting/')) { 209 $('.mednav.coach').addClass('active') 210 } else if (currenturl.match('/okr/consulting/')) { 211 $('.mednav.okr').addClass('active') 212 } else if (currenturl.match('/ai-strategy-consulting/')) { 213 $('.mednav.ai').addClass('active') 214 } 215} 216 217// function softwareNav() { 218// const urlMap = { 219// "/strategic-planning-software/strategic-alignment/": ".bignav.align", 220// "/strategic-planning-software/strategy-builder/": ".bignav.design", 221// "/okr/software/": ".bignav.execute", 222// "/strategic-planning-software/reports/": ".bignav.report", 223// "/strategic-planning-software/strategic-planning-dashboard/": ".b
223ignav.dashboard", 224// "/strategic-planning-software/integrations/": ".bignav.integrate" 225// } 226 227// Object.entries(urlMap).forEach(([url, selector]) => { 228// if (currenturl.match(url)) { 229// $(selector).addClass("active") 230// } 231// }) 232// } 233 234function subNav() { 235 236 if (currenturl.match('/strategic-planning-software/strategic-alignment/')) { 237 $('.light.align').addClass('active') 238 } 239 if (currenturl.match('/strategic-planning-course/')) { 240 $('.light.design').addClass('active') 241 } 242 if (currenturl.match('/okr/software/')) { 243 $('.light.execute').addClass('active') 244 } 245 if (currenturl.match('/strategic-planning-software/reports/')) { 246 $('.light.report').addClass('active') 247 } 248 if (currenturl.match('/strategic-planning-software/strategic-planning-dashboard/')) { 249 $('.light.dashboard').addClass('active') 250 } 251 if (currenturl.match('/strategic-planning-software/strategy-application/')) { 252 $('.light.mobile').addClass('active') 253 } 254 if (currenturl.match('/strategic-planning-software/integrations/')) { 255 $('.light.integrate').addClass('active') 256 } 257 if (currenturl.match('/strategic-planning-software/community/')) { 258 $('.light.community').addClass('active') 259 } 260 if (currenturl.match('/strategic-planning-software/partner-program/')) { 261 $('.light.partner').addClass('active') 262 } 263 264 if (currenturl.match('/about-us/team/')) { 265 $('.light.team').addClass('active') 266 } 267 if (currenturl.match('/about-us/the-onstrategy-manifesto/')) { 268 $('.light.manifesto').addClass('active') 269 } 270 if (currenturl.match('/strategic-planning-consultants/')) { 271 $('.light.consultants').addClass('active') 272 } 273 if (currenturl.match('/onstrategy-gives-back/')) { 274 $('.light.give').addClass('active') 275 } 276 if (currenturl.match('/resources/section/updates/')) { 277 $('.light.news').addClass('active') 278 } 279 if (currenturl.match('/contact-onstrategy/')) { 280 $('.light.work').addClass('active') 281 } 282 283 if (currenturl.match('/services/') && !currenturl.includes('/complete-strategic-plan-facilitation/')) { 284 $('.light.services').addClass('active') 285 } 286 if (currenturl.match('/strategic-planning-facilitator/')) { 287 $('.light.facilitate').addClass('active') 288 } 289 if (currenturl.match('/strategy-consulting/')) { 290 $('.light.coach').addClass('active') 291 } 292 if (currenturl.match('/okr/consulting/')) { 293 $('.light.okr').addClass('active') 294 } 295 if (currenturl.match('/ai-strategy-consulting/')) { 296 $('.light.ai').addClass('active') 297 } 298 299} 300highLight() 301softwareNav() 302servicesNav() 303subNav() 304// Toggle main nav on mobile 305$(document).ready(function () { 306 $(".nav-item").hover(function () { 307 $(this).not(this).removeClass("active") 308 $(this).toggleClass("active") 309 const navClass = this.getAttribute('data-nav') 310 $('section.sub-nav.' + navClass).toggleClass("active") 311 if ($(this).hasClass('active')) { 312 $(".absolute-icon").toggleClass("z") 313 } else { 314 setTimeout(function () { 315 $(".absolute-icon").toggleClass("z") 316 }, 200); 317 } 318 319 }) 320}); 321$(document).ready(function () { 322 $(".sub-nav").hover( 323 function () { 324 $(this).addClass("active") 325 $(".absolute-icon").addClass("z") 326 }, 327 function () { 328 $(this).removeClass("active") 329 $(".absolute-icon").removeClass("z") 330 } 331 ) 332}); 333 334// teal home page blocks 335$('.teal-nav').click(function () { 336 $('.frames').removeClass('show') 337 let this_frame = $(this).data('frame') 338 $('.teal-nav').removeClass('active') 339 $(this).addClass('active') 340 $('.' + this_frame).addClass('show') 341}) 342 343function expandParent() { 344 $(this).click(function (event) { 345 event.preventDefault() 346 // Get the parent element of the clicked element 347 const parent = event.target.parentNode; 348 // Add the class to the parent element 349 $(parent).parent().parent().addClass('expanded') 350 }) 351}; 352/*! http://responsiveslides.com v1.55 by @viljamis */ 353(function(c,K,C){c.fn.responsiveSlides=function(m){var a=c.extend({auto:!0,speed:500,timeout:4E3,pager:!1,nav:!1,random:!1,pause:!1,pauseControls:!0,prevText:"Previous",nextText:"Next",maxwidth:"",navContainer:"",manualControls:"",namespace:"rslides",before:c.noop,after:c.noop},m);return this.each(function(){C++;var f=c(this),u,t,v,n,q,r,p=0,e=f.children(),D=e.length,h=parseFloat(a.speed),E=parseFloat(a.timeout),w=parseFloat(a.maxwidth),g=a.namespace,d=g
353+C,F=g+"_nav "+d+"_nav",x=g+"_here",k=d+"_on", 354y=d+"_s",l=c("<ul class='"+g+"_tabs "+d+"_tabs' />"),z={"float":"left",position:"relative",opacity:1,zIndex:2},A={"float":"none",position:"absolute",opacity:0,zIndex:1},G=function(){var b=(document.body||document.documentElement).style,a="transition";if("string"===typeof b[a])return!0;u=["Moz","Webkit","Khtml","O","ms"];var a=a.charAt(0).toUpperCase()+a.substr(1),c;for(c=0;c<u.length;c++)if("string"===typeof b[u[c]+a])return!0;return!1}(),B=function(b){a.before(b);G?(e.removeClass(k).css(A).eq(b).addClass(k).css(z), 355p=b,setTimeout(function(){a.after(b)},h)):e.stop().fadeOut(h,function(){c(this).removeClass(k).css(A).css("opacity",1)}).eq(b).fadeIn(h,function(){c(this).addClass(k).css(z);a.after(b);p=b})};a.random&&(e.sort(function(){return Math.round(Math.random())-.5}),f.empty().append(e));e.each(function(a){this.id=y+a});f.addClass(g+" "+d);m&&m.maxwidth&&f.css("max-width",w);e.hide().css(A).eq(0).addClass(k).css(z).show();G&&e.show().css({"-webkit-transition":"opacity "+h+"ms ease-in-out","-moz-transition":"opacity "+ 356h+"ms ease-in-out","-o-transition":"opacity "+h+"ms ease-in-out",transition:"opacity "+h+"ms ease-in-out"});if(1<e.length){if(E<h+100)return;if(a.pager&&!a.manualControls){var H=[];e.each(function(a){a+=1;H+="<li><a href='#' class='"+y+a+"'>"+a+"</a></li>"});l.append(H);m.navContainer?c(a.navContainer).append(l):f.after(l)}a.manualControls&&(l=c(a.manualControls),l.addClass(g+"_tabs "+d+"_tabs"));(a.pager||a.manualControls)&&l.find("li").each(function(a){c(this).addClass(y+(a+1))});if(a.pager||a.manualControls)r= 357l.find("a"),t=function(a){r.closest("li").removeClass(x).eq(a).addClass(x)};a.auto&&(v=function(){q=setInterval(function(){e.stop(!0,!0);var b=p+1<D?p+1:0;(a.pager||a.manualControls)&&t(b);B(b)},E)},v());n=function(){a.auto&&(clearInterval(q),v())};a.pause&&f.hover(function(){clearInterval(q)},function(){n()});if(a.pager||a.manualControls)r.bind("click",function(b){b.preventDefault();a.pauseControls||n();b=r.index(this);p===b||c("."+k).queue("fx").length||(t(b),B(b))}).eq(0).closest("li").addClass(x), 358a.pauseControls&&r.hover(function(){clearInterval(q)},function(){n()});if(a.nav){g="<a href='#' class='"+F+" prev'>"+a.prevText+"</a><a href='#' class='"+F+" next'>"+a.nextText+"</a>";m.navContainer?c(a.navContainer).append(g):f.after(g);var d=c("."+d+"_nav"),I=d.filter(".prev");d.bind("click",function(b){b.preventDefault();b=c("."+k);if(!b.queue("fx").length){var d=e.index(b);b=d-1;d=d+1<D?p+1:0;B(c(this)[0]===I[0]?b:d);(a.pager||a.manualControls)&&t(c(this)[0]===I[0]?b:d);a.pauseControls||n()}}); 359a.pauseControls&&d.hover(function(){clearInterval(q)},function(){n()})}}if("undefined"===typeof document.body.style.maxWidth&&m.maxwidth){var J=function(){f.css("width","100%");f.width()>w&&f.css("width",w)};J();c(K).bind("resize",function(){J()})}})}})(jQuery,this,0); 360 361$( document ).ready(function() { 362 $(".eslides").responsiveSlides({ 363 auto: false, // Boolean: Animate automatically, true or false 364 speed: 500, // Integer: Speed of the transition, in milliseconds 365 timeout: 4000, // Integer: Time between slide transitions, in milliseconds 366 pager: false, // Boolean: Show pager, true or false 367 nav: true, // Boolean: Show navigation, true or false 368 random: false, // Boolean: Randomize the order of the slides, true or false 369 pause: false, // Boolean: Pause on hover, true or false 370 pauseControls: true, // Boolean: Pause when hovering controls, true or false 371 prevText: "Previous", // String: Text for the "previous" button 372 nextText: "Next", // String: Text for the "next" button 373 maxwidth: "", // Integer: Max-width of the slideshow, in pixels 374 navContainer: "", // Selector: Where controls should be appended to, default is after the 'ul' 375 manualControls: "", // Selector: Declare custom pager navigation 376 namespace: "eslides", // String: Change the default namespace used 377 before: function(){}, // Function: Before callback 378 after: function(){} // Function: After callback 379 }); 380}); 381$(document).ready(function () { 382 $(".os-yt-swap").click(function () { 383 const video_id = this.getAttribute('data-os-yt') 384 const video_embed = '<div class="videoWrapper"><iframe width="672" height="378" src="https://www.youtube.com/embed/' + video_id + '?autoplay=1" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></div>' 385 $(this).empty() 386 $(this).append(video_embed) 387 }) 388}) 389 390function yt_prefetch() { 391 function render(content) { 392 return content; 393 } 394 $('.os-yt-swap').each(function () { 395 const video_id = this.getAttribute('data-os-yt') 396 const prefetch_link = document.createElement('link') 397 prefetch_link.type = 'document' 398 prefetch_link.rel = 'prefetch' 399 prefetch_link.href = 'https://www.youtube.com/embed/' + video_id 400 document.head.append(render(prefetch_link)) 401 }) 402} 403 404function yt_schema() { 405 const title = document.title 406 const url = window.location.href 407 var data 408 const elements = document.getElementsByClassName('os-yt-swap') 409 $('.os-yt-swap').each(function () { 410 const video_id = this.getAttribute('data-os-yt') 411 if (elements.length > 0) { 412 var getEndpoint = function () { 413 var endpoint = 'https://www.googleapis.com/youtube/v3/videos?id=' + video_id + '&key=AIzaSyBivaIaslecyoQk7x6zlg9NBQpnq_5DvOw&part=snippet' 414 return endpoint 415 } 416 fetch(getEndpoint()).then(function (response) { 417 if (response.ok) { 418 return response.json() 419 } 420 return Promise.reject(response); 421 }).then(function (e_data) { 422 data = e_data.items 423 }).catch(function (error) { 424 console.warn(error) 425 }).finally(function () { 426 let splitDescription = data[0]['snippet']['description'].split('\n')[0]; 427 const structuredDataText = '{"@context":"https://schema.org","@type":"VideoObject","@id":"#video1","uploadDate": "' + data[0]['snippet']['publishedAt'] + '","name":"' + data[0]['snippet']['title'] + '","description":"' + splitDescription + '","thumbnailUrl":"https://i.ytimg.com/vi/' + video_id + '/mqdefault.jpg","contentUrl":"https://www.youtube.com/watch?v=' + video_id + '","embedUrl":"https://www.youtube.com/embed/' + video_id + '","url":"' + url + '"}' 428 const script = document.createElement('script') 429 script.setAttribute('type', 'application/ld+json') 430 script.setAttribute('class', 'os-schema') 431 script.textContent = structuredDataText 432 document.head.appendChild(script) 433 }) 434 } 435 }) 436} 437 438yt_schema() 439yt_prefetch() 440$('.so-controls').click(function () { 441 $('.so-control').toggleClass('so-active') 442 $('.so-column').toggleClass('so-active') 443}) 444 445$('.toggle-wrapper .toggle').click(function () { 446 $(this).parent().toggleClass('active') 447 if ( $(this).parent().hasClass('active') ) { 448 $('#pricing-change').attr('href', 'https://app.mystrategicplan.com/signup/?plan=ons_hub_unlim_miro_monthly_trial') 449 $('.pricing-info.change').html('<u>With</u> Guided Planning<br />Miro Whiteboards') 450 } else { 451 $('#pricing-change').attr('href', 'https://app.mystrategicplan.com/signup/?plan=ons_hub_unlim_monthly_trial') 452 $('.pricing-info.change').html('<u>Without</u> Guided Planning<br />Miro Whiteboards') 453 } 454 $('span.big').text(function (i, text) { 455 return text.includes('$200') ? '$500' : '$200' 456 }) 457}) 458 459$('ol.slides > li').click(function () { 460 let image_class = this.getAttribute('data-class') 461 let image_src = this.getAttribute('data-image')
462 let image_file = $('img.instruction-slide.' + image_class) 463 image_file.attr('src', image_src) 464 $('ol.slides.' + image_class + ' li').not(this).removeClass('active') 465 $('.select-nav').not(this).removeClass('active') 466 $(this).addClass('active') 467}) 468 469 470$('.faq').click(function () { 471 $('.faq').not(this).removeClass('show-faq') 472 $(this).toggleClass('show-faq') 473}) 474 475$('.transcript').click(function () { 476 $('.transcript').not(this).removeClass('open') 477 $(this).toggleClass('open') 478}) 479 480 481 482$(document).ready(function() { 483 $('.so-tab-navigation-build').click(function() { 484 $('.so-tab-navigation-build').addClass("so-tab-navigation-active"); 485 $('.so-tab-navigation-cascade').removeClass("so-tab-navigation-active"); 486 $('.so-tab-navigation-engage').removeClass("so-tab-navigation-active"); 487 $('.so-tab-navigation-report').removeClass("so-tab-navigation-active"); 488 $('.so-tab-build').addClass("so-tab-active"); 489 $('.so-tab-cascade').removeClass("so-tab-active"); 490 $('.so-tab-engage').removeClass("so-tab-active"); 491 $('.so-tab-report').removeClass("so-tab-active"); 492 }); 493 $('.so-tab-navigation-cascade').click(function() { 494 $('.so-tab-navigation-build').removeClass("so-tab-navigation-active"); 495 $('.so-tab-navigation-cascade').addClass("so-tab-navigation-active"); 496 $('.so-tab-navigation-engage').removeClass("so-tab-navigation-active"); 497 $('.so-tab-navigation-report').removeClass("so-tab-navigation-active"); 498 $('.so-tab-build').removeClass("so-tab-active"); 499 $('.so-tab-cascade').addClass("so-tab-active"); 500 $('.so-tab-engage').removeClass("so-tab-active"); 501 $('.so-tab-report').removeClass("so-tab-active"); 502 }); 503 $('.so-tab-navigation-engage').click(function() { 504 $('.so-tab-navigation-build').removeClass("so-tab-navigation-active"); 505 $('.so-tab-navigation-cascade').removeClass("so-tab-navigation-active"); 506 $('.so-tab-navigation-engage').addClass("so-tab-navigation-active"); 507 $('.so-tab-navigation-report').removeClass("so-tab-navigation-active"); 508 $('.so-tab-build').removeClass("so-tab-active"); 509 $('.so-tab-cascade').removeClass("so-tab-active"); 510 $('.so-tab-engage').addClass("so-tab-active"); 511 $('.so-tab-report').removeClass("so-tab-active"); 512 }); 513 $('.so-tab-navigation-report').click(function() { 514 $('.so-tab-navigation-build').removeClass("so-tab-navigation-active"); 515 $('.so-tab-navigation-cascade').removeClass("so-tab-navigation-active"); 516 $('.so-tab-navigation-engage').removeClass("so-tab-navigation-active"); 517 $('.so-tab-navigation-report').addClass("so-tab-navigation-active"); 518 $('.so-tab-build').removeClass("so-tab-active"); 519 $('.so-tab-cascade').removeClass("so-tab-active"); 520 $('.so-tab-engage').removeClass("so-tab-active"); 521 $('.so-tab-report').addClass("so-tab-active"); 522 }); 523}); 524 525$('.select-nav').click(function () { 526 $('.select-nav').not(this).removeClass('active') 527 $(this).toggleClass('active') 528}) 529if($( 'body' ).hasClass( 'posts-list' )) { 530 531 var pageNumber = document.getElementById('pageSelect') 532 533 function pageSize () { 534 this_archive.page_width = $(window).width() 535 width = this_archive.page_width 536 if ( width > 1260 ) { 537 master_page = 15 538 } else if ( width <= 1260 && width > 945 ) { 539 master_page = 9 540 } else if ( width <= 945 ) { 541 master_page = 6 542 } 543 } 544 545 function wpListPosts(input) { 546 var postData = new Object(); 547 jQuery.ajax({ 548 type: "POST", 549 url: '/wp-content/themes/msp/includes/resources/list-posts-html.php', 550 data: { postData: input }, 551 dataType: 'HTML', 552 success: function (response) { 553 var html = response 554 $( '#resource-loading' ).hide() 555 $( '#block' ).removeClass( 'loading' ) 556 $( '#block' ).empty().append( html ) 557 }, 558 error: function (response) { 559 console.log('error') 560 } 561 }); 562 } 563 564 function wpListPostsCount(input) { 565 var postData = new Object(); 566 jQuery.ajax({ 567 type: "POST", 568 url: '/wp-content/themes/msp/includes/resources/list-posts-count.php', 569 data: { postData: input }, 570 dataType: 'JSON', 571 success: function (response) { 572 //this commented out success function sets 2 pages in page nav with final page and prev/next 573 $(pageNumber).empty(); 574 var data = response.count; 575 var page_count = input.page_count 576 var thisPage = input.page_number 577 var pageCount = Math.round(data/page_count) 578 if ( thisPage > 1 ) { 579 $( pageNumber ).append($('<a class="pagefied prev-active" onclick="thisPage(' + ( thisPage - 1 ) + ')"> <span class="nav-arrow"><img src="/wp-content/themes/msp/newImages/icons/arrow-left.png" /></span> Previous </a>')) 580 }
581 if ( pageCount > 2 && thisPage == pageCount ) { 582 $( pageNumber ).append($('<a class="pagefied active-' + ( thisPage - 2 ) + '" onclick="thisPage(' + ( thisPage - 2 ) + ')"> ' + ( thisPage - 2 ) + ' </a>')) 583 $( pageNumber ).append($('<a class="pagefied active-' + ( thisPage - 1 ) + '" onclick="thisPage(' + ( thisPage - 1 ) + ')"> ' + ( thisPage - 1 ) + ' </a>')) 584 $( pageNumber ).append($(' <span>... </span> ')) 585 } 586 587 $(pageNumber).append($('<a class="pagefied active active-' + thisPage + '" onclick="thisPage(' + thisPage + ')"> ' + thisPage + ' </a>')) 588 589 if( thisPage < ( pageCount - 1 ) ) { 590 $( pageNumber ).append($('<a class="pagefied active-' + ( thisPage + 1 ) + '" onclick="thisPage(' + ( thisPage + 1 ) + ')"> ' + ( thisPage + 1 ) + ' </a>')) 591 $( pageNumber ).append($('<a class="pagefied active-' + ( thisPage + 2 ) + '" onclick="thisPage(' + ( thisPage + 2 ) + ')"> ' + ( thisPage + 2 ) + ' </a>')) 592 } 593 594 /*if ( pageCount > 2 && thisPage != pageCount ) { 595 $( pageNumber ).append($(' <span>... </span> ')) 596 $( pageNumber ).append($('<a class="pagefied" onclick="thisPage(' + (pageCount) + ')">' + (pageCount) + '</a>')) 597 }*/ 598 599 if ( thisPage != (pageCount) && pageCount > 2 ) { 600 $( pageNumber ).append($('<a class="pagefied prev-active" onclick="thisPage(' + ( thisPage + 1 ) + ')"> Next <span class="nav-arrow"><img src="/wp-content/themes/msp/newImages/icons/arrow-right.png" /></span> </a>')) 601 } 602 }, 603 error: function (response) { 604 console.log('error') 605 } 606 }); 607 } 608 609 function catOption(category, text) { 610 $( '#block' ).addClass( 'loading' ) 611 pageSize() 612 var tag = this_archive.tag_id 613 var media = this_archive.media_id 614 if (category != 1) { 615 wpListPosts({ "cats": category, "tags": tag, "media": media, "page_number": 1, "page_count": master_page }) 616 wpListPostsCount({ "cats": category, "tags": tag, "media": media, "page_number": 1, "page_count": master_page }) 617 } else { 618 wpListPosts({ "tags": tag, "media": media,"page_number": 1, "page_count": master_page }) 619 wpListPostsCount({ "tags": tag, "media": media, "page_number": 1, "page_count": master_page }) 620 } 621 $('a.cat').removeClass('active') 622 $('a.cat').text(text) 623 this_archive.cat_id = category 624 } 625 626 function tagOption(tag, text) { 627 $( '#block' ).addClass( 'loading' ) 628 pageSize() 629 event.preventDefault() 630 var category = this_archive.cat_id 631 var media = this_archive.media_id 632 if (tag != 1) { 633 wpListPosts({ "cats": category, "tags": tag, "media": media, "page_number": 1, "page_count": master_page }) 634 wpListPostsCount({ "cats": category, "tags": tag, "media": media, "page_number": 1, "page_count": master_page }) 635 } else { 636 wpListPosts({ "cats": category, "media": media, "page_number": 1, "page_count": master_page }) 637 wpListPostsCount({ "cats": category, "media": media, "page_number": 1, "page_count": master_page }) 638 } 639 $('a.tag').removeClass('active') 640 $('a.tag').text(text) 641 this_archive.tag_id = tag 642 } 643 644 function mediaOption(media, text) { 645 $( '#block' ).addClass( 'loading' ) 646 pageSize() 647 event.preventDefault() 648 var category = this_archive.cat_id 649 var tag = this_archive.tag_id 650 if (tag == 1) { tag = null } 651 if (media != 1) { 652 wpListPosts({ "cats": category, "tags": tag, "media": media, "page_number": 1, "page_count": master_page }) 653 wpListPostsCount({ "cats": category, "tags": tag, "media": media, "page_number": 1, "page_count": master_page }) 654 } else { 655 wpListPosts({ "cats": category, "tags": tag, "page_number": 1, "page_count": master_page }) 656 wpListPostsCount({ "cats": category, "tags": tag, "page_number": 1, "page_count": master_page }) 657 } 658 $('a.media').removeClass('active') 659 $('a.media').text(text) 660 this_archive.media_id = media 661 } 662 663 function thisPage(page) { 664 $( '#block' ).addClass( 'loading' ) 665 pageSize() 666 var category = this_archive.cat_id 667 var tag = this_archive.tag_id 668 var media = this_archive.media_id 669 if (tag == 1) { tag = null } 670 $('a.pagefied').removeClass('active'); 671 wpListPosts({ "cats": category, "tags": tag, "media": media, "page_number": page, "page_count": master_page }) 672 wpListPostsCount({ "cats": category, "tags": tag, "media": media, "page_number": page, "page_count": master_page }) 673 this_archive.page_number = page 674 blockScroll () 675 } 676 677 function blockScroll () { 678 $('html, body').animate({ 679 scrollTop: $('#block').offset().top - 200 680 }, 'slow') 681 } 682 683 function resourcesLoad() { 684 pageSize() 685 $('#resource-loading').show() 686 if (this_archive.type == 'cat') { 687 var category = this_archive.id 688 wpListPosts({ "cats": category, "page_number": 1, "page_count": master_page }) 689 wpListPostsCount({ "cats": category, "page_number": 1, "page_count": master_page }) 690 } 691 if (this_archive.type == 'tag') { 692 var tag = this_archive.id 693 wpListPosts({ "tags": tag, "page_number": 1, "page_count": master_page }) 694 wpListPostsCount({ "tags": tag, "page_number": 1, "page_count": master_page }) 695 } 696 if (this_archive.type == 'media') { 697 var media = this_archive.id 698 wpListPosts({ "media": media, "page_number": 1, "page_count": master_page }) 699 wpListPostsCount({ "media": media, "page_number": 1, "page_count": master_page }) 700 } 701 this_archive.page_number = 1 702 } 703 704 function resourcesMainLoad() { 705 pageSize() 706 wpListPosts({ "page_number": 1, "page_count": master_page }) 707 wpListPostsCount({ "page_number": 1, "page_count": master_page }) 708 this_archive.page_number = 1 709 } 710 711 if($( 'body' ).hasClass( 'archive' )) { 712 resourcesLoad() 713 } 714 if($( 'body' ).hasClass( 'resource-landing' )) { 715 resourcesMainLoad() 716 } 717 718} 719if ($('body').hasClass('post')) { 720 function postReadLength() { 721 countParagraphs() 722 var readingLengthDiv = document.getElementById("reading-length") 723 var minuteCount = Math.floor(number_paragraphs / 3) 724 minuteCount = Math.max(2, minuteCount) 725 var lenghtHtml = minuteCount 726 lenghtHtml += '-minute read' 727 $(readingLengthDiv).prepend(lenghtHtml) 728 } 729 window.onload = postReadLength() 730} 731if ($('body').hasClass('post')) { 732 733 var more_like_this, more_title_1, more_title_2, more_title_3, final_tag 734 var tag_id = this_post.post_tags 735 var post_id = this_post.id 736 var more_title_4 = null 737 738 if ( tag_id == 52 || tag_id == 565 || tag_id == 562 ) { 739 //SWOT Analysis, Environmental Scan, Comp Analysis 740 more_title_1 = "<a class='more-link 40635' href='/resources/free-guide-to-prioritize-your-opportunities/'>A Free Guide to Prioritize Your Opportunities</a>" 741 more_title_2 = "<a class='more-link 618' href='/resources/internal-and-external-analysis/'>How to Conduct an Internal and External Analysis</a>" 742 more_title_3 = "<a class='more-link 19591' href='/resources/using-the-pest-analysis-as-a-strategy-tool/'>Use the PESTLE Analysis to Examine External Forces </a>" 743 more_title_4 = "<a class='more-link 10856' href='/resources/video-putting-your-swot-to-work/'>Video: How to Put Your SWOT to Work</a>" 744 } else if ( tag_id == 398 ) { 745 //Customer Research 746 more_title_1 = "<a class='more-link 26690' href='/resources/why-an-emotional-portrait-of-your-customer-matters/'>Why an Emotional Portrait of Your Customer Matters</a>"
747 more_title_2 = "<a class='more-link 27498' href='/resources/who-is-your-ideal-customer/'>Who is Your Ideal Customer?</a>" 748 more_title_3 = "<a class='more-link 31525' href='/resources/bad-research-is-dead-weight-to-your-strategy/'>Bad Research is Dead Weight to Your Strategy</a>" 749 more_title_4 = "<a class='more-link 10006' href='/resources/getting-feedback-from-customer-without-using-a-survey/'>How to Conduct Customer Research Without a Survey</a>" 750 } else if ( tag_id == 26 ) { 751 //Mission Statements 752 more_title_1 = "<a class='more-link 32878' href='/resources/checklist-for-how-to-write-a-great-mission-statement/'>The Checklist for How to Write a Great Mission Statement</a>" 753 more_title_2 = "<a class='more-link 27521' href='/resources/keep-your-mission-from-the-crash-and-burn/'>How to Keep Your Mission from the Crash-and -Burn</a>" 754 more_title_3 = "<a class='more-link 308' href='/resources/video-how-to-write-a-mission-statement-that-inspires/'>Video: How to Write a Mission Statement</a>" 755 more_title_4 = "<a class='more-link 21189' href='/resources/developing-your-strategy/'>How to Develop Your Plan’s Mission, Vision, & Values</a>" 756 } else if ( tag_id == 560 ) { 757 //Vision Statements 758 more_title_1 = "<a class='more-link 32904' href='/resources/how-to-create-a-vision-statement-to-drive-your-future/'>How to Create a Vision Statement to Drive Your Future</a>" 759 more_title_2 = "<a class='more-link 29758' href='/resources/6-steps-to-get-your-vision-noticed-by-the-wsj/'>6 Steps to Get Your Vision Noticed by the Wall Street Journal</a>" 760 more_title_3 = "<a class='more-link 35966' href='/resources/visioning-a-free-downloadable-guide-to-create-a-clear-vision-and-desired-future-state/'>A Free Guide to Create a Clear Vision & Future State</a>" 761 more_title_4 = "<a class='more-link 21189' href='/resources/developing-your-strategy/'>Develop Your Plan’s Mission, Vision, & Values</a>" 762 } else if ( tag_id == 560 ) { 763 //Values Statements 764 more_title_1 = "<a class='more-link 630' href='/resources/core-values/'>An Overview on Core Values</a>" 765 more_title_2 = "<a class='more-link 310' href='/resources/video-how-to-write-a-values-statement/'>Video: How to Write a Values Statement</a>" 766 more_title_3 = "<a class='more-link 31544' href='/resources/how-to-reveal-if-youre-living-your-values/'>How to Reveal if You’re Living Your Core Values</a>" 767 more_title_4 = "<a class='more-link 21189' href='/resources/developing-your-strategy/'>Develop Your Mission, Vision, & Values</a>" 768 } else if ( tag_id == 564 ) { 769 //Market Strats 770 more_title_1 = "<a class='more-link 2271' href='/resources/how-to-choose-a-market-development-strategy/'>How to Choose a Market Development Strategy</a>" 771 more_title_2 = "<a class='more-link 36137' href='/resources/a-free-downloadable-guide-to-build-a-growth-strategy-where-to-play-how-to-win/'>A Free Downloadable Guide to Build a Growth Strategy: Where to Play & How to Win</a>" 772 more_title_3 = "<a class='more-link 32382' href='/resources/2018-planning-part-2-of-4-assess-your-market-position/'>How to Assess Your Market Position</a>" 773 } else if ( tag_id == 443 ) { 774 //Competitive Advantages 775 more_title_1 = "<a class='more-link 32664' href='/resources/what-are-competitive-advantages-two-truths-and-a-myth/'>Competitive Advantages: Two Truths and a Myth</a>" 776 more_title_2 = "<a class='more-link 35437' href='/resources/exercise-to-define-your-competitive-edge/'>Strategic Decisions: An Exercise to Define Your Competitive Edge</a>" 777 more_title_3 = "<a class='more-link 36137' href='/resources/a-free-downloadable-guide-to-build-a-growth-strategy-where-to-play-how-to-win/'>A Free Downloadable Guide to Build a Growth Strategy: Where to Play & How to Win</a>" 778 more_title_4 = "<a class='more-link 8632' href='/resources/competitive-advantages/'>How to Identify Your Competitive Advantages</a>" 779 } else if ( tag_id == 30 ) { 780 //Balanced Scorecard 781 more_title_1 = "<a class='more-link 26196' href='/resources/balanced-scorecard-4/'>The Basics on the Balanced Scorecard</a>" 782 more_title_2 = "<a class='more-link 5093' href='/resources/examples-of-strategic-objectives/'>Examples of Strategic Objectives</a>" 783 more_title_3 = "<a class='more-link 2966' href='/resources/video-strategic-planning-with-the-balanced-scorecard/'>Video: Strategic Planning with the Balanced Scorecard</a>" 784 more_title_4 = "<a class='more-link 111' href='/resources/balancing-your-strategic-priorities/'>
784Using the Balanced Scorecard to Identify Priorities</a>" 785 } else if ( tag_id == 563 ) { 786 //Organizational Strategies 787 more_title_1 = "<a class='more-link 14427' href='/resources/developing-organizational-strategies/'>Develop Organizational Strategies</a>" 788 more_title_2 = "<a class='more-link 10903' href='/resources/video-identifying-your-organization-wide-strategies/'>Video: Identifying Organization wide Strategies</a>" 789 more_title_3 = "<a class='more-link 30964' href='/resources/corporate-level-strategy/'>How to Create Your Corporate-Level Strategy</a>" 790 } else if ( tag_id == 200 ) { 791 //Strategic Objectives 792 more_title_1 = "<a class='more-link 5093' href='/resources/examples-of-strategic-objectives/'>Examples of Strategic Objectives</a>" 793 more_title_2 = "<a class='more-link 32991' href='/resources/goal-cascading-101-create-strategic-objectives-and-aligned-annual-goals/'>Goal Cascading 101: Create Strategic Objectives and Aligned Annual Goals</a>" 794 more_title_3 = "<a class='more-link 25512' href='/resources/strategic-planning-process-basics/'>The Complete Guide to Develop Your Strategic Plan</a>" 795 more_title_4 = "<a class='more-link 30964' href='/resources/corporate-level-strategy/'>How to Create Your Corporate-Level Strategy</a>" 796 } else if ( tag_id == 9 ) { 797 //Goal Setting 798 more_title_1 = "<a class='more-link 21195' href='/resources/building-plan/'>Guide to Build Your Plan, Priorities, and Goals </a>" 799 more_title_2 = "<a class='more-link 318' href='/resources/video-how-to-set-smart-goals/'>Video: How to Set SMART Goals </a>" 800 more_title_3 = "<a class='more-link 28786' href='/resources/your-smart-goals-suck/'>Your SMART Goals Suck–Fix Them </a>" 801 more_title_4 = "<a class='more-link 32991' href='/resources/goal-cascading-101-create-strategic-objectives-and-aligned-annual-goals/'>Goal Cascading 101:Create Strategic Objectives and Aligned Annual Goals </a>" 802 } else if ( tag_id == 613 ) { 803 //Measures Targets & KPIs 804 more_title_1 = "<a class='more-link 33420' href='/resources/kpis-vs-metrics-tips-tricks-to-performance-measures/'>KPIs vs Metrics: Tips and Tricks to Performance Measures </a>" 805 more_title_2 = "<a class='more-link 33420' href='/resources/kpis-vs-metrics-tips-tricks-to-performance-measures/'>OKRs vs KPIs: A Downloadable Guide to Explain the Difference </a>" 806 more_title_3 = "<a class='more-link 32270' href='/resources/27-examples-of-key-performance-indicators/'>27 Example Key Performance Indicators </a>" 807 more_title_4 = "<a class='more-link 26215' href='/resources/how-to-develop-and-use-key-performance-indicators-kpis-4-mins/'>Video: How to Develop and Use Key Performance Indicators </a>" 808 } else if ( tag_id == 'OKR' ) { 809 //OKRs 810 more_title_1 = "<a class='more-link 40169' href='/okr/examples/'>Top 12 OKR Examples and Templates for Your Organization </a>" 811 more_title_2 = "<a class='more-link 40161' href='/okr/how-to-establish-a-quarterly-okr-cycle/'>A Free Guide to Establish a Quarterly OKR Cycle </a>" 812 more_title_3 = "<a class='more-link 40167' href='/okr/setting-okrs-that-work/'>Guide for Setting OKRs that Work</a>" 813 more_title_4 = "<a class='more-link 40197' href='/okr/video/what-are-okrs-objective-and-key-results/'>Video: What are OKRs?</a>" 814 } else if ( tag_id == 'VRIO' ) { 815 //OKRs 816 more_title_1 = "<a class='more-link 40169' href='/resources/identify-competitive-advantages/'>How to Identify Competitive Advantages</a>" 817 more_title_2 = "<a class='more-link 40161' href='/resources/competitive-advantage-examples/'>Competitive Advantage Examples</a>" 818 more_title_3 = "<a class='more-link 40167' href='/resources/a-free-downloadable-guide-to-build-a-growth-strategy-where-to-play-how-to-win/'>How to Build a Growth Strategy</a>" 819 more_title_4 = "<a class='more-link 40197' href='/resources/how-to-create-a-vision-statement-to-drive-your-future/'>How to Write a Vision Statement</a>" 820 } else if ( tag_id == 655 ) { 821 //Agile Planning 822 more_title_1 = "<a class='more-link 38613' href='/resources/video-agilestrategy-new-way-to-plan-manage-business-results/'>Agile Strategy: The New Way to Plan and Manage Business Results </a>" 823 more_title_2 = "<a class='more-link 38364' href='/resources/video-agilestrategy-how-to-build-an-agile-roadmap/'>How to Build an Agile Roadmap</a>"
824 more_title_3 = "<a class='more-link 37875' href='/resources/establishing-weekly-health-metrics/'>How to Establish Weekly Health Metrics to Stay Agile </a>" 825 more_title_4 = "<a class='more-link 31875' href='/resources/strategy-is-only-successful-if-youre-consistent-and-agile/'>Strategy is Only Successful if You’re Consistent and Agile </a>" 826 } else if ( tag_id == 552 ) { 827 //Agile Implementation 828 more_title_1 = "<a class='more-link 37875' href='/resources/establishing-weekly-health-metrics/'>How to Establish Weekly Health Metrics to Stay Agile </a>" 829 more_title_2 = "<a class='more-link 38832' href='/resources/use-metricmondaystm-to-connect-your-vision-to-your-day-to-day/'>Use MetricMondays<sup>TM</sup> to Connect Your Vision to Your Day-to-Day </a>" 830 more_title_3 = "<a class='more-link 40161' href='/okr/how-to-establish-a-quarterly-okr-cycle/'>A Free Guide to Establish a Quarterly OKR Cycle</a>" 831 more_title_4 = "<a class='more-link 31875' href='/resources/strategy-is-only-successful-if-youre-consistent-and-agile/'>Strategy is Only Successful if You’re Consistent and Agile </a>" 832 } else if ( tag_id == 616 ) { 833 //Implementation Process 834 more_title_1 = "<a class='more-link 38832' href='/resources/use-metricmondaystm-to-connect-your-vision-to-your-day-to-day/'>Use MetricMondays<sup>TM</sup> to Connect Your Vision to Your Day-to-Day </a>" 835 more_title_2 = "<a class='more-link 21197' href='/resources/managing-performance/'>Guide to Implementation and Managing Your Plan </a>" 836 more_title_3 = "<a class='more-link 40688' href='/resources/what-are-the-minimum-components-of-an-implementation-ready-plan/'>The Minimum Components of an Implementation-Ready Plan </a>" 837 more_title_4 = "<a class='more-link 25512' href='/resources/strategic-planning-process-basics/'>The Basics of Strategic Implementation </a>" 838 } else if ( tag_id == 576 ) { 839 //Communicating Strategy 840 more_title_1 = "<a class='more-link 3313' href='/resources/can-you-say-what-your-strategy-is/'>Can You Say What Your Strategy Is? A Guide to Storyboard Your Plan </a>" 841 more_title_2 = "<a class='more-link 33482' href='/resources/three-flavors-of-strategy-reviews/'>Three Flavors of Strategy Reviews</a>" 842 more_title_3 = "<a class='more-link 32505' href='/resources/5-reasons-your-team-might-resist-strategic-planning-change/'>5 Reasons Your Team Might Resist Strategic Planning and Change </a>" 843 more_title_4 = "<a class='more-link 35670' href='/resources/is-it-strategic-a-free-downloadable-guide/'>Is it Strategic? A Free Guide to Assess Your Team’s Strategic Conversations</a>" 844 } else if ( tag_id == 558 ) { 845 //Leadership and Culture 846 more_title_1 = "<a class='more-link 34019' href='/resources/an-exercise-to-help-identify-where-you-need-to-shift-culture/'>An Exercise to Help Identify Where You Need to Shift Culture </a>" 847 more_title_2 = "<a class='more-link 33829' href='/resources/title-4-quick-powerful-tips-to-be-a-better-leader-no-leadership-book-required/'>4 Quick & Powerful Tips to be a Better Leader. No Leadership Book Required. </a>" 848 more_title_3 = "<a class='more-link 39124' href='/resources/what-551-organizations-are-doing-to-thrive-in-the-next-normal/'>What 551 Organizations are Doing to Thrive in the Next Normal </a>" 849 more_title_4 = "<a class='more-link 35670' href='/resources/is-it-strategic-a-free-downloadable-guide/'>Can You Say What Your Strategy Is? A Guide to Storyboard Your Strategy.</a>" 850 } else if ( tag_id == 575 ) { 851 //Planning Process and Retreats 852 more_title_1 = "<a class='more-link 12531' href='/resources/video-overview-of-the-strategic-planning-process/'>An Overview of the Planning Process</a>" 853 more_title_2 = "<a class='more-link 12531' href='/resources/video-overview-of-the-strategic-planning-process/'>Video: The Complete Strategic Planning Process </a>" 854 more_title_3 = "<a class='more-link 35550' href='/resources/an-overview-of-the-top-7-failures-to-avoid-in-strategic-planning/'>Avoid The Top 7 Failures in Strategic Planning</a>" 855 more_title_4 = "<a class='more-link 33544' href='/resources/annual-planning-is-dead/'>Annual Strategic Planning is Dead. Here’s Why.</a>" 856 } else if ( tag_id == 630 ) { 857 //Client Showcase 858 more_title_1 = "<a class='more-link 40095' href='/resources/this-european-company-proved-virtual-strategic-planning-sessions-actually-work/'>This Company Proved Virtual Strategic Planning Works </a>" 859 more_title_2 = "<a class='more-link 39557' href='/resources/3-1-hour-sessions-is-all-it-takes-to-update-a-plan-for-2021/'>How EMC Updated Their Plan in Only 3 One-Hour Sessions </a>" 860 more_title_3 = "<a class='more-link 29071' href='/customers/enterprise/patagonia/'>
860Case Study: Aligning an Organization & Leadership Team to Save the Planet with Patagonia</a>" 861 more_title_4 = "<a class='more-link 37000' href='/customers/nonprofits/make-a-wish/'>Case Study: Committing to a Bigger Impact to Make Dreams Come True with Make-A-Wish</a>" 862 } else { 863 //OKRs 864 more_title_1 = "<a class='more-link 40169' href='/okr/examples/'>Top 12 OKR Examples and Templates for Your Organization </a>" 865 more_title_2 = "<a class='more-link 40161' href='/okr/how-to-establish-a-quarterly-okr-cycle/'>A Free Guide to Establish a Quarterly OKR Cycle </a>" 866 more_title_3 = "<a class='more-link 40167' href='/okr/setting-okrs-that-work/'>Guide for Setting OKRs that Work</a>" 867 more_title_4 = "<a class='more-link 40197' href='/okr/video/what-are-okrs-objective-and-key-results/'>Video: What are OKRs?</a>" 868 } 869 870 more_like_this = "<div class='more-block'>" 871 more_like_this += more_title_1 872 more_like_this += "</div>" 873 more_like_this += "<div class='more-block'>" 874 more_like_this += more_title_2 875 more_like_this += "</div>" 876 more_like_this += "<div class='more-block'>" 877 more_like_this += more_title_3 878 more_like_this += "</div>" 879 if ( more_title_4 ) { 880 more_like_this += "<div class='more-block'>" 881 more_like_this += more_title_4 882 more_like_this += "</div>" 883 } 884 885 final_tag = "<div class='more-block cta'>" 886 final_tag += "<p>Need help building an agile plan? We can help.</p>" 887 final_tag += "<a class='ms-btn btn-green' href='/contact-onstrategy/'>Contact Us</a>" 888 final_tag += "</div>" 889 890 function sidebarMore() { 891 var moreLengthDiv = document.getElementById("read-more") 892 $(moreLengthDiv).prepend(final_tag) 893 $(moreLengthDiv).prepend(more_like_this) 894 $( '.more-link' ).each(function() { 895 if ( $( this ).hasClass( post_id ) ) { 896 //hide the link if it is the same as the current post 897 $( this ).parent().hide() 898 } 899 }) 900 } 901 window.onload = sidebarMore() 902} 903if ($('body').hasClass('resource-rotator')) { 904 905 function getGuides() { 906 var postData = new Object(); 907 jQuery.ajax({ 908 type: "GET", 909 url: '/wp-content/themes/msp/includes/resources/free-guides-html.php', 910 dataType: 'HTML', 911 success: function (response) { 912 $('#free-guides-banner').append(response) 913 var w = $(window).width() 914 $(window).resize(function () { 915 //only reset position if screen width changes 916 if ($(window).width() == w) return 917 w = $(window).width() 918 if ($('body').hasClass('resource-landing')) { 919 $('.free-guides-wrapper').each(function () { 920 $(this).removeClass('no-right') 921 $(this).addClass('no-left') 922 $(this).css('left', '0px') 923 $(this).children().removeClass('active') 924 $(this).children().eq(0).addClass('active') 925 }) 926 } 927 if ($('body').hasClass('post')) { 928 $('.free-guides-wrapper').each(function () { 929 $(this).removeClass('no-right') 930 $(this).addClass('no-left') 931 $(this).css('left', '0px') 932 $(this).children().removeClass('active') 933 $(this).children().eq(2).addClass('active') 934 }) 935 } 936 }) 937 938 $('.free-nav-right').click(function () { 939 if (!$(this.parentNode).hasClass('no-right')) { 940 var guides = $(this).parent().next() 941 var nav = this 942 var position = $(guides).position() 943 var width = parseFloat($('.free-guide').outerWidth()) 944 var newLeft = position.left - (width)
945 $(guides).css('left', newLeft + 'px') 946 $(guides).find('.free-guide').each(function () { 947 if ($(this).hasClass('active')) { 948 $(this).next().addClass('active') 949 $(this).removeClass('active') 950 return false 951 } 952 }) 953 if ($('body').hasClass('post')) { 954 var right = $(guides).find('.free-guide').last() 955 } else { 956 var right = $(guides).find('.free-guide').last() 957 } 958 var left = $(guides).find('.free-guide').first() 959 if ($(right).hasClass('active')) { 960 $(nav.parentNode).addClass('no-right') 961 } else { 962 $(nav.parentNode).removeClass('no-right') 963 } 964 if ($(left).hasClass('active')) { 965 $(nav.parentNode).addClass('no-left') 966 } 967 else { 968 $(nav.parentNode).removeClass('no-left') 969 } 970 } 971 }) 972 973 $('.free-nav-left').click(function () { 974 if (!$(this.parentNode).hasClass('no-left')) { 975 var guides = $(this).parent().next() 976 var nav = this 977 var position = $(guides).position() 978 var width = parseFloat($('.free-guide').outerWidth()) 979 var newLeft = position.left + (width) 980 $(guides).css('left', newLeft) 981 $(guides).find('.free-guide').each(function () { 982 if ($(this).hasClass('active')) { 983 $(this).prev().addClass('active') 984 $(this).removeClass('active') 985 return false 986 } 987 }) 988 if ($('body').hasClass('post')) { 989 var right = $(guides).find('.free-guide').last() 990 } else { 991 var right = $(guides).find('.free-guide').last() 992 } 993 var left = $(guides).find('.free-guide').first() 994 if ($(right).hasClass('active')) { 995 $(nav.parentNode).addClass('no-right') 996 } else { 997 $(nav.parentNode).removeClass('no-right') 998 } 999 if ($(left).hasClass('active')) { 1000 $(nav.parentNode).addClass('no-left') 1001 } 1002 else { 1003 $(nav.parentNode).removeClass('no-left') 1004 } 1005 } 1006 }) 1007 1008 function loadNav() { 1009 var guides = $('.free-guides-wrapper') 1010 if ($('.free-guide').first().hasClass('active')) { 1011 $('.free-nav-left').addClass('inactive') 1012 } else { 1013 $('.free-nav-left').removeClass('inactive') 1014 } 1015 $('.free-nav-right').removeClass('inactive') 1016 } 1017 }, 1018 error: function (response) { 1019 console.log('error') 1020 } 1021 }) 1022 } 1023 if (!isMobile) {getGuides()} 1024 1025} 1026 1027var number_paragraphs, manual_paragraphs 1028function countParagraphs() { 1029 number_paragraphs = $('article.content div:not(.transcript)').find('p:visible').length 1030} 1031if ($('body').hasClass('post')) { 1032 var tag_id = this_post.post_tags 1033 var ctaCode, cta_default, cta_image, cta_title, 1034 cta_script = '<script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2.js"></script>' 1035 1036 function insertCtaHtml() { 1037 if (manual_paragraphs) { 1038 number_paragraphs = manual_paragraphs 1039 } else { 1040 countParagraphs() 1041 } 1042 var cta_insert = Math.floor(number_paragraphs / 2) 1043 if (cta_insert > 12) { cta_insert = 12 } 1044 cta_insert = Math.max(1, cta_insert) 1045 if (cta_insert == 1) { 1046 $('<div id="resources-cta" class="legacy"></div>').insertAfter('article.content p:nth-of-type(1)') 1047 } else { 1048 $('<div id="resources-cta" class="legacy"></div>').insertAfter('article.content p:nth-of-type(' + (cta_insert - 1) + ')') 1049 } 1050 } 1051 1052 if (!$('#resources-cta').length) { 1053 // If there isn't already a CTA div, insert one 1054 insertCtaHtml() 1055 } 1056 1057 function insertCta() { 1058 1059 var ctaDiv = document.getElementById("resources-cta") 1060 // was it a manually inserted div? 1061 // isMobile = true 1062 if ($(ctaDiv).hasClass('legacy')) { 1063 // if yes, do stuff 1064 if (tag_id == 52) { 1065 //SWOT analysis 1066 cta_title = "<h5>Get the Free Guide and Canvas to Create a SWOT Analysis</h5>" 1067 cta_image = "<picture><source srcset='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/SWOT.webp 1x' type='image/webp'><source srcset='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/SWOT.png 1x' type='image/png'><img loading='lazy' class='cta-image' src='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/SWOT.png' alt='SWOT'></picture>" 1068 if (!isMobile) { 1069 cta_script = "<script>hbspt.forms.create({portalId: '54493',formId: '751f7331-adb8-4faa-9e1b-cc217342f895', target: '.cta-content-bottom'});</script>" 1070 } else { 1071 cta_script = '<p class="align-center mt-30 mb-30"><a class="ms-btn btn-green" href="/swot-assessment-guide-download/">Get The Guide</a></p>' 1072 } 1073 // cta_script = '<p class="align-center mt-30 mb-30"><a class="ms-btn btn-green" href="/swot-assessment-guide-download/">Get The Guide</a></p>' 1074 1075 } else if (tag_id == 565 || tag_id == 398 || tag_id == 562) { 1076 //Environ scan, Cust Research, Comp Analysis 1077 cta_title = "<h5>Get the Free Guide and Canvas to Build a Solid Growth Strategy</h5>" 1078 cta_image = "<picture><source srcset='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/GrowthStrategy.webp 1x' type='image/webp'><source srcset='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/GrowthStrategy.png 1x' type='image/png'><img loading='lazy' class='cta-image' src='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/GrowthStrategy.png' alt='Growth Strategy'></picture>" 1079 if (!isMobile) { 1080 cta_script = "<script>hbspt.forms.create({portalId: '54493',formId: '412cabfe-8905-462b-8994-c4a3d6dc30a6', target: '.cta-content-bottom'});</script>" 1081 } else { 1082 cta_script = '<p class="align-center mt-30 mb-30"><a class="ms-btn btn-green" href="/growth-strategy-guide/">Get The Guide</a></p>' 1083 } 1084 // cta_script = '<p class="align-center mt-30 mb-30"><a class="ms-btn btn-green" href="/growth-strategy-guide/">Get The Guide</a></p>' 1085 1086 } else if (tag_id == 26) { 1087 //Mission Statement 1088 cta_title = "<h5>Get the Free Guide and Canvas to Build a Mission that Sticks</h5>" 1089 cta_image = "<picture><source srcset='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/MissionStatement.webp 1x' type='image/webp'><source srcset='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/MissionStatement.png 1x' type='image/png'><img loading='lazy' class='cta-image' src='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/MissionStatement.png' alt='Mission Statement'></picture>" 1090 if (!isMobile) { 1091 cta_script = "<script>hbspt.forms.create({portalId: '54493',formId: '764f0973-dfb1-4dfb-81ca-174a53b0e1ef', target: '.cta-content-bottom'});</script>" 1092 } else { 1093 cta_script = '<p class="align-center mt-30 mb-30"><a class="ms-btn btn-green" href="/mission-statement-guide-download/">Get The Guide</a></p>' 1094 } 1095 // cta_script = '<p class="align-center mt-30 mb-30"><a class="ms-btn btn-green" href="/mission-statement-guide-download/">Get The Guide</a></p>' 1096 1097 } else if (tag_id == 561) { 1098 //Values Statement 1099 cta_title = "<h5>Get the Free Guide to Identify and Live Your Core Values</h5>" 1100 cta_image = "<picture><source srcset='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/ValuesStatment.webp 1x' type='image/webp'><source srcset='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/ValuesStatment.png 1x' type='image/png'><img loading='lazy' class='cta-image' src='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/ValuesStatment.png' alt='Values Statement'></picture>" 1101 if (!isMobile) { 1102 cta_script = "<script>hbspt.forms.create({portalId: '54493',formId: 'dbe7bdb3-778c-4e65-960d-b98cc3ad01dc', target: '.cta-content-bottom', target: '.cta-content-bottom'});</script>" 1103 } else { 1104 cta_script = '<p class="align-center mt-30 mb-30"><a class="ms-btn btn-green" href="/values-guide-download/">Get The Guide</a></p>' 1105 } 1106 // cta_script = '<p class="align-center mt-30 mb-30"><a class="ms-btn btn-green" href="/values-guide-download/">Get The Guide</a></p>' 1107 1108 } else if (tag_id == 560) { 1109 //Vision Statement 1110 cta_title = "<h5>Get the Free Guide to Create a Clear Vision and Future State</h5>" 1111 cta_image = "<img class='cta-image' src='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/Visioning.png'>" 1112 cta_image = "<picture><source srcset='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/Visioning.webp 1x' type='image/webp'><source srcset='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/Visioning.png 1x' type='image/png'><img loading='lazy' class='cta-image' src='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/Visioning.png' alt='Vision Statement'></picture>" 1113 if (!isMobile) { 1114 cta_script = "<script>hbspt.forms.create({portalId: '54493',formId: 'fa1fbbd8-253d-4e29-b40d-4c727885827d', target: '.cta-content-bottom', target: '.cta-content-bottom'});</script>" 1115 } else { 1116 cta_script = '<p class="align-center mt-30 mb-30"><a class="ms-btn btn-green" href="/visioning-guide-download/">Get The Guide</a></p>' 1117 } 1118 // cta_script = '<p class="align-center mt-30 mb-30"><a class="ms-btn btn-green" href="/visioning-guide-download/">Get The Guide</a></p>' 1119 1120 } else if (tag_id == 564 || tag_id == 443) { 1121 //Market Strats, Comp Advantages 1122 cta_title = "<h5>Get the Free Guide and Canvas to Build a Solid Growth Strategy</h5>" 1123 cta_image = "<picture><source srcset='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/GrowthStrategy.webp 1x' type='image/webp'><source srcset='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/GrowthStrategy.png 1x' type='image/png'><img loading='lazy' class='cta-image' src='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/GrowthStrategy.png' alt='Growth Strategy'></picture>" 1124 if (!isMobile) { 1125 cta_script = "<script>hbspt.forms.create({portalId: '54493',formId: '412cabfe-8905-462b-8994-c4a3d6dc30a6', target: '.cta-content-bottom'});</script>" 1126 } else { 1127 cta_script = '<p class="align-center mt-30 mb-30"><a class="ms-btn btn-green" href="/growth-strategy-guide/">Get The Guide</a></p>' 1128 } 1129 // cta_script = '<p class="align-center mt-30 mb-30"><a class="ms-btn btn-green" href="/growth-strategy-guide/">Get The Guide</a></p>' 1130 1131 } else if (tag_id == 30 || tag_id == 563 || tag_id == 200) { 1132 //Balanced Scorecard, Org Wide Strats, Strat Objs 1133 cta_title = "<h5>Get the Free Guide to Build Your Strategic Objectives (with Examples!)</h5>" 1134 cta_image = "<picture><source srcset='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/StrategicObjectives.webp 1x' type='image/webp'><source srcset='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/StrategicObjectives.png 1x' type='image/png'><img loading='lazy' class='cta-image' src='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/StrategicObjectives.png' alt='Strategic Objectives'></picture>" 1135 if (!isMobile) { 1136 cta_script = "<script>hbspt.forms.create({portalId: '54493',formId: '4dadb971-7e47-4e9b-b9ac-2f2297568224', target: '.cta-content-bottom'});</script>" 1137 } else { 1138 cta_script = '<p class="align-center mt-30 mb-30"><a class="ms-btn btn-green" href="/strategic-objectives-guide-download/">Get The Guide</a></p>' 1139 } 1140 // cta_script = '<p class="align-center mt-30 mb-30"><a class="ms-btn btn-green" href="/strategic-objectives-guide-download/">Get The Guide</a></p>' 1141 1142 } else if (tag_id == 9) { 1143 //Goal Setting 1144 cta_title = "<h5>Get the Free Guide for Writing Better SMART Goals</h5>" 1145 cta_image = "<picture><source srcset='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/SmartGoals.webp 1x' type='image/webp'><source srcset='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/SmartGoals.png 1x' type='image/png'><img loading='lazy' class='cta-image' src='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/SmartGoals.png' alt='Smart Goals'></picture>" 1146 if (!isMobile) { 1147 cta_script = "<script>hbspt.forms.create({portalId: '54493',formId: 'bea54808-5496-49e9-82f3-715fb3877dc3', target: '.cta-content-bottom'});</script>" 1148 } else { 1149 cta_script = '<p class="align-center mt-30 mb-30"><a class="ms-btn btn-green" href="/smart-goals-guide-download/">Get The Guide</a></p>' 1150 } 1151 // cta_script = '<p class="align-center mt-30 mb-30"><a class="ms-btn btn-green" href="/smart-goals-guide-download/">Get The Guide</a></p>' 1152 1153 } else if (tag_id == 613 || tag_id == 650) { 1154 //Measure Targets KPIs 1155 cta_title = "<h5>Get the Free Guide for Creating KPIs (with 100 Examples!)</h5>" 1156 cta_image = "<img class='cta-image' src='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/KPIs.png'>" 1157 cta_image = "<picture><source srcset='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/KPIs.webp 1x' type='image/webp'><source srcset='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/KPIs.png 1x' type='image/png'><img loading='lazy' class='cta-image' src='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/KPIs.png' alt='KPIs'></picture>" 1158 if (!isMobile) { 1159 cta_script = "<script>hbspt.forms.create({portalId: '54493',formId: '1875a4a7-a2f8-44d3-84c6-aec7d247e72e', target: '.cta-content-bottom'});</script>" 1160 } else { 1161 cta_script = '<p class="align-center mt-30 mb-30"><a class="ms-btn btn-green" href="/kpi-guide-download/">Get The Guide</a></p>' 1162 } 1163 // cta_script = '<p class="align-center mt-30 mb-30"><a class="ms-btn btn-green" href="/kpi-guide-download/">Get The Guide</a></p>' 1164 1165 } else if (tag_id == 'OKR' || tag_id == 551 || tag_id == 654) { 1166 //OKRs, Action
1166Planning 1167 cta_title = "<h5>Get the Free Guide for Setting OKRs that Work (with 100 examples!)</h5>" 1168 cta_image = "<picture><source srcset='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/OKRsthatWOrk.webp 1x' type='image/webp'><source srcset='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/OKRsthatWOrk.png 1x' type='image/png'><img loading='lazy' class='cta-image' src='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/OKRsthatWOrk.png' alt='OKRs that work'></picture>" 1169 if (!isMobile) { 1170 cta_script = "<script>hbspt.forms.create({portalId: '54493',formId: '954978b6-269f-4d4d-a967-f86144fb99a3', target: '.cta-content-bottom'});</script>" 1171 } else { 1172 cta_script = '<p class="align-center mt-30 mb-30"><a class="ms-btn btn-green" href="/okrs-that-work-download/">Get The Guide</a></p>' 1173 } 1174 // cta_script = '<p class="align-center mt-30 mb-30"><a class="ms-btn btn-green" href="/okrs-that-work-download/">Get The Guide</a></p>' 1175 1176 } else if (tag_id == 'VRIO') { 1177 //OKRs, Action Planning 1178 cta_title = "<h5>Download the Free VRIO Guide</h5>" 1179 cta_image = "<picture><source srcset='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/VRIO-1.webp 1x' type='image/webp'><source srcset='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/VRIO-1.png 1x' type='image/png'><img loading='lazy' class='cta-image' src='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/VRIO-1.png' alt='Download the Free VRIO Guide'></picture>" 1180 if (!isMobile) { 1181 cta_script = "<script>hbspt.forms.create({portalId: '54493',formId: 'ea83dc50-9492-4f00-868f-bcc1d0b4f2ae', target: '.cta-content-bottom'});</script>" 1182 } else { 1183 cta_script = '<p class="align-center mt-30 mb-30"><a class="ms-btn btn-green" href="/vrio-guide-download/">Get The Guide</a></p>' 1184 } 1185 // cta_script = '<p class="align-center mt-30 mb-30"><a class="ms-btn btn-green" href="/vrio-guide-download/">Get The Guide</a></p>' 1186 1187 } else if (tag_id == 655) { 1188 //Agile Planning 1189 cta_title = "<h5>Get the Free Guide for Setting OKRs that Work (with 100 examples!)</h5>" 1190 cta_image = "<picture><source srcset='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/OKRsthatWOrk.webp 1x' type='image/webp'><source srcset='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/OKRsthatWOrk.png 1x' type='image/png'><img loading='lazy' class='cta-image' src='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/OKRsthatWOrk.png' alt='OKRs that work'></picture>" 1191 if (!isMobile) { 1192 cta_script = "<script>hbspt.forms.create({portalId: '54493',formId: '954978b6-269f-4d4d-a967-f86144fb99a3', target: '.cta-content-bottom'});</script>" 1193 } else { 1194 cta_script = '<p class="align-center mt-30 mb-30"><a class="ms-btn btn-green" href="/okrs-that-work-download/">Get The Guide</a></p>' 1195 } 1196 // cta_script = '<p class="align-center mt-30 mb-30"><a class="ms-btn btn-green" href="/okrs-that-work-download/">Get The Guide</a></p>' 1197 1198 } else if (tag_id == 552) { 1199 //Agile Implementation 1200 cta_title = "<h5>Get the Free Guide for Agile Implementation & OKR Cycles</h5>" 1201 cta_image = "<picture><source srcset='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/GoalsandOKRCycle.webp 1x' type='image/webp'><source srcset='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/GoalsandOKRCycle.png 1x' type='image/png'><img loading='lazy' class='cta-image' src='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/GoalsandOKRCycle.png' alt='Goals and OKR Cycle'></picture>" 1202 if (!isMobile) { 1203 cta_script = "<script>hbspt.forms.create({portalId: '54493',formId: 'e33db606-a236-4bcf-969b-ac065d8c8ab9', target: '.cta-content-bottom'});</script>" 1204 } else { 1205 cta_script = '<p class="align-center mt-30 mb-30"><a class="ms-btn btn-green" href="/strategysprint-guide-download/">Get The Guide</a></p>' 1206 } 1207 // cta_script = '<p class="align-center mt-30 mb-30"><a class="ms-btn btn-green" href="/strategysprint-guide-download/">Get The Guide</a></p>' 1208 1209 } else if (tag_id == 574 || tag_id == 616) { 1210 //Planning Cal, Implement Process 1211 cta_title = "<h5>Get the Free Guide for Agile Implementation & OKR Cycles</h5>" 1212 cta_image = "<picture><source srcset='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/GoalsandOKRCycle.webp 1x' type='image/webp'><source srcset='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/GoalsandOKRCycle.png 1x' type='image/png'><img loading='lazy' class='cta-image' src='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/GoalsandOKRCycle.png' alt='Goals and OKR Cycle'></picture>" 1213 if (!isMobile) { 1214 cta_script = "<script>hbspt.forms.create({portalId: '54493',formId: 'e33db606-a236-4bcf-969b-ac065d8c8ab9', target: '.cta-content-bottom'});</script>" 1215 } else { 1216 cta_script = '<p class="align-center mt-30 mb-30"><a class="ms-btn btn-green" href="/strategysprint-guide-download/">Get The Guide</a></p>' 1217 } 1218 // cta_script = '<p class="align-center mt-30 mb-30"><a class="ms-btn btn-green" href="/strategysprint-guide-download/">Get The Guide</a></p>' 1219 1220 } else if (tag_id == 555) { 1221 //Scorecards & Dashboards 1222 cta_title = "<h5>Free Guide to Establish Your Weekly Health Metrics</h5>" 1223 cta_image = "<picture><source srcset='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/MetricMondays.webp 1x' type='image/webp'><source srcset='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/MetricMondays.png 1x' type='image/png'><img loading='lazy' class='cta-image' src='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/MetricMondays.png' alt='Metric Mondays'></picture>" 1224 if (!isMobile) { 1225 cta_script = "<script>hbspt.forms.create({portalId: '54493',formId: 'ce231599-8869-46d7-b132-90e02b73bbf0', target: '.cta-content-bottom'});</script>" 1226 } else { 1227 cta_script = '<p class="align-center mt-30 mb-30"><a class="ms-btn btn-green" href="/weeky-health-metrics-download/">Get The Guide</a></p>' 1228 } 1229 // cta_script = '<p class="align-center mt-30 mb-30"><a class="ms-btn btn-green" href="/weeky-health-metrics-download/">Get The Guide</a></p>' 1230 1231 } else if (tag_id == 558) { 1232 //Leadership and Culture 1233 cta_title = "<h5>Does Your Strategy Suck? Get this Free Guide to Find Out.</h5>" 1234 cta_image = "<img class='cta-image' src='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/DoesYourStrategySuck.png'>" 1235 if (!isMobile) { 1236 cta_script = "<script>hbspt.forms.create({portalId: '54493',formId: 'c285428b-dbc9-4ba8-b972-b3e8855460cb', target: '.cta-content-bottom'});</script>" 1237 } else { 1238 cta_script = '<p class="align-center mt-30 mb-30"><a class="ms-btn btn-green" href="/does-your-strategy-suck-guide-download/">Get The Guide</a></p>' 1239 } 1240 // cta_script = '<p class="align-center mt-30 mb-30"><a class="ms-btn btn-green" href="/does-your-strategy-suck-guide-download/">Get The Guide</a></p>' 1241 1242 } else if (tag_id == 146 || tag_id == 575) { 1243 //Planning Process, Retreats 1244 cta_title = "<h5>Get the Free Guide for Agile Implementation & OKR Cycles</h5>" 1245 cta_image = "<picture><source srcset='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/GoalsandOKRCycle.webp 1x' type='image/webp'><source srcset='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/GoalsandOKRCycle.png 1x' type='image/png'><img loading='lazy' class='cta-image' src='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/GoalsandOKRCycle.png' alt='Goals and OKR Cycle'></picture>" 1246 if (!isMobile) { 1247 cta_script = "<script>hbspt.forms.create({portalId: '54493',formId: 'e33db606-a236-4bcf-969b-ac065d8c8ab9', target: '.cta-content-bottom'});</script>" 1248 } else { 1249 cta_script = '<p class="align-center mt-30 mb-30"><a class="ms-btn btn-green" href="/strategysprint-guide-download/">Get The Guide</a></p>' 1250 } 1251 // cta_script = '<p class="align-center mt-30 mb-30"><a class="ms-btn btn-green" href="/strategysprint-guide-download/">Get The Guide</a></p>' 1252 1253 } else if (tag_id == 576) { 1254 //Communicating Strat 1255 cta_title = "<h5>Get the Free Guide to Create a One Page Plan to Communicate Your Strategy</h5>" 1256 cta_image = "<picture><source srcset='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/StrategyStoryboard.webp 1x' type='image/webp'><source srcset='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/StrategyStoryboard.png 1x' type='image/png'><img loading='lazy' class='cta-image' src='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/StrategyStoryboard.png' alt='Strategy Storyboard'></picture>" 1257 if (!isMobile) { 1258 cta_script = "<script>hbspt.forms.create({portalId: '54493',formId: '3e0aaad6-86a5-44c9-b73a-0362e08ea008', target: '.cta-content-bottom'});</script>" 1259 } else { 1260 cta_script = '<p class="align-center mt-30 mb-30"><a class="ms-btn btn-green" href="/strategy-storyboard-download-2/">Get The Guide</a></p>' 1261 } 1262 // cta_script = '<p class="align-center mt-30 mb-30"><a class="ms-btn btn-green" href="/strategy-storyboard-download-2/">Get The Guide</a></p>' 1263 1264 } else if (tag_id == 630) { 1265 //Client Showcase 1266 cta_title = "<h5>Does Your Strategy Suck? Get this Free Guide to Find Out.</h5>" 1267 cta_image = "<picture><source srcset='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/DoesYourStrategySuck.webp 1x' type='image/webp'><source srcset='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/DoesYourStrategySuck.png 1x' type='image/png'><img loading='lazy' class='cta-image' src='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/DoesYourStrategySuck.png' alt='Does Your Strategy Suck'></picture>" 1268 if (!isMobile) { 1269 cta_script = "<script>hbspt.forms.create({portalId: '54493',formId: 'c285428b-dbc9-4ba8-b972-b3e8855460cb', target: '.cta-content-bottom'});</script>" 1270 } else { 1271 cta_script = '<p class="align-center mt-30 mb-30"><a class="ms-btn btn-green" href="/does-your-strategy-suck-guide-download/">Get The Guide</a></p>' 1272 } 1273 // cta_script = '<p class="align-center mt-30 mb-30"><a class="ms-btn btn-green" href="/does-your-strategy-suck-guide-download/">Get The Guide</a></p>' 1274 1275 } else { 1276 cta_title = "<h5>Develop Your Strategy using the Complete Guide for Strategic Planning</h5>" 1277 cta_image = "<picture><source srcset='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/HTG.webp 1
1277x' type='image/webp'><source srcset='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/HTG.png 1x' type='image/png'><img loading='lazy' class='cta-image' src='https://54493.fs1.hubspotusercontent-na1.net/hubfs/54493/wp/guides/HTG.png' alt='Basics of Strategic Planning'></picture>" 1278 if (!isMobile) { 1279 cta_script = "<script>hbspt.forms.create({portalId: '54493',formId: '751f7331-adb8-4faa-9e1b-cc217342f895', target: '.cta-content-bottom'});</script>" 1280 } else { 1281 cta_script = '<p class="align-center mt-30 mb-30"><a class="ms-btn btn-green" href="/complete-strategy-guide/">Get The Guide</a></p>' 1282 } 1283 // cta_script = '<p class="align-center mt-30 mb-30"><a class="ms-btn btn-green" href="/complete-strategy-guide/">Get The Guide</a></p>' 1284 1285 } 1286 cta_default = "<div class='cta-wrapper'>" 1287 cta_default += "<div class='cta-content cta-content-top'>" 1288 cta_default += "<div class='cta-content-top-left'>" 1289 cta_default += cta_title 1290 cta_default += "</div>" 1291 cta_default += "<div class='cta-content-top-right'>" 1292 cta_default += cta_image 1293 cta_default += "</div>" 1294 cta_default += "</div>" 1295 cta_default += "<div class='cta-content hbspt-form cta-content-bottom'>" 1296 cta_default += cta_script 1297 cta_default += "</div>" 1298 cta_default += "</div>" 1299 //ctaCode = cta_default 1300 console.log(ctaDiv) 1301 $(ctaDiv).prepend(cta_default) 1302 } 1303 if (currenturl.includes('/resources/6-tips-for-virtual-sessions-that-dont-suck/')) { 1304 ctaCode = cta_default 1305 //$(ctaDiv).prepend(ctaCode) 1306 } else { 1307 ctaCode = cta_default 1308 //$(ctaDiv).prepend(ctaCode) 1309 } 1310 } 1311 $(document).ready(function () { 1312 insertCta() 1313 }) 1314} 1315 1316$(document).ready(tocFn) 1317 1318function tocFn($) { 1319 const toc = $('article.content:not(.wide):not(.course)') 1320 const tocLocation = $('.inner-content.sidebar.right') 1321 var allHeadings = toc.find('h1, h2, h3, h4, h5, h6') 1322 i = 1 1323 let tocHtml = '<div style="clear: both;"></div><div class="toc"><p>In This Article:</p><div class="toc-list">' 1324 allHeadings.each(function () { 1325 let marginLeft = 10 1326 let linkColor = '' 1327 let fontWeight = 'normal' 1328 $(this).before('<a name="link-' + i + '">') 1329 if ($(this).is('h2')) { 1330 marginLeft = 0 1331 fontWeight = 'bold' 1332 } else if ($(this).is('h3')) { 1333 marginLeft = 15 1334 } else if ($(this).is('h4')) { 1335 paddingLeft = 30 1336 } 1337 if ($(this).is('h5')) { 1338 marginLeft = '0' 1339 linkColor = 'green' 1340 } 1341 tocHtml += '<div style="margin-left:' + marginLeft + 'px; font-weight:' + fontWeight + ';"><a class="toc-anchor ' + linkColor + '" href="#link-' + i + '">' + $(this).text() + '</div>' 1342 i++ 1343 }) 1344 tocHtml += '</div></div>' 1345 if (i > 2) { 1346 $(tocLocation).append(tocHtml) 1347 } 1348 $('.toc-anchor').click(function () { 1349 if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) { 1350 var target = $(this.hash) 1351 target = target.length ? target : $('[name=' + this.hash.slice(1) + ']') 1352 if (target.length) { 1353 if (!isMobile) { 1354 $('html,body').animate({ 1355 scrollTop: target.offset().top - 100 1356 }, 1000) 1357 } else { 1358 $('html,body').animate({ 1359 scrollTop: target.offset().top - 50 1360 }, 1000) 1361 } 1362 return false 1363 } 1364 } 1365 }) 1366} 1367 1368$(document).ready(tocFnWide) 1369 1370function tocFnWide($) { 1371 const toc = $('article.content.wide') 1372 const tocLocation = $('.inner-content.sidebar.left .info') 1373 var allHeadings = toc.find('h2') 1374 i = 1 1375 let tocHtml = '<div style="clear: both;"></div><div class="toc wide pr-60 tablet-hide"><h4 class="fat mb-15">In This Article:</h4><div class="toc-list">' 1376 1377 allHeadings.each(function () { 1378 $(this).addClass('heading-' + i) 1379 $(this).before('<a name="link-' + i + '">') 1380 1381 tocHtml += '<div style="font-weight:bold;"><a class="toc-anchor heading-' + i + ' " href="#link-' + i + '">' + $(this).text() + '</div>' 1382 i++ 1383 }) 1384 1385 tocHtml += '</div></div>' 1386 if (i > 2) { 1387 $(tocLocation).append(tocHtml) 1388 } 1389 1390 $('a.toc-anchor').click(function () {
1391 if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) { 1392 var target = $(this.hash) 1393 target = target.length ? target : $('[name=' + this.hash.slice(1) + ']') 1394 if (target.length) { 1395 if (!isMobile) { 1396 $('html,body').animate({ 1397 scrollTop: target.offset().top - 100 1398 }, 1000) 1399 } else { 1400 $('html,body').animate({ 1401 scrollTop: target.offset().top - 50 1402 }, 1000) 1403 } 1404 return false 1405 } 1406 } 1407 }) 1408} 1409 1410$(document).ready(courseToc) 1411 1412function courseToc($) { 1413 const toc = $('article.content.course') 1414 const tocLocation = $('.inner-content.sidebar.left .info') 1415 var allHeadings = toc.find('h2, h3') 1416 i = 1 1417 let tocHtml = '<div style="clear: both;"></div><div class="toc course pr-60 tablet-hide"><h4 class="fat mb-15">Table of Contents:</h4><div class="toc-list">' 1418 1419 allHeadings.each(function () { 1420 if ($(this).is('h2')) { 1421 marginLeft = 0 1422 } else if ($(this).is('h3')) { 1423 marginLeft = 15 1424 } 1425 $(this).addClass('heading-' + i) 1426 $(this).before('<a name="link-' + i + '">') 1427 1428 tocHtml += '<div style="margin-left:' + marginLeft + 'px; font-weight:bold;"><a class="toc-anchor heading-' + i + ' " href="#link-' + i + '">' + $(this).text() + '</div>' 1429 i++ 1430 }) 1431 1432 tocHtml += '</div></div>' 1433 if (i > 2) { 1434 $(tocLocation).append(tocHtml) 1435 } 1436 1437 $('a.toc-anchor').click(function () { 1438 if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) { 1439 var target = $(this.hash) 1440 target = target.length ? target : $('[name=' + this.hash.slice(1) + ']') 1441 if (target.length) { 1442 if (!isMobile) { 1443 $('html,body').animate({ 1444 scrollTop: target.offset().top - 100 1445 }, 1000) 1446 } else { 1447 $('html,body').animate({ 1448 scrollTop: target.offset().top - 50 1449 }, 1000) 1450 } 1451 return false 1452 } 1453 } 1454 }) 1455} 1456 1457function tocScroll() { 1458 const toc = $('article.content.wide') 1459 var allHeadings = toc.find('h2') 1460 var scrollTop = $(window).scrollTop() 1461 i = 1 1462 allHeadings.each(function () { 1463 var a = $(this).offset().top 1464 var b = $(window).height() 1465 distanceA = (a - scrollTop) 1466 let aClass = $(this).prop('className').split(' ').pop() 1467 if (distanceA <= b) { 1468 $('a.toc-anchor').removeClass('active') 1469 $('a.' + aClass).addClass('active') 1470 } 1471 if (distanceA > b) { 1472 $('a.' + aClass).removeClass('active') 1473 } 1474 i++ 1475 }) 1476} 1477 1478function courseScroll() { 1479 const toc = $('article.content.course') 1480 var allHeadings = toc.find('h2') 1481 var scrollTop = $(window).scrollTop() 1482 i = 1 1483 allHeadings.each(function () { 1484 var a = $(this).offset().top 1485 var b = $(window).height() 1486 distanceA = (a - scrollTop) 1487 let aClass = $(this).prop('className').split(' ').pop() 1488 if (distanceA <= b) { 1489 $('a.toc-anchor').removeClass('active') 1490 $('a.' + aClass).addClass('active') 1491 } 1492 if (distanceA > b) { 1493 $('a.' + aClass).removeClass('active') 1494 } 1495 i++ 1496 }) 1497} 1498 1499$(window).scroll(function() { 1500 tocScroll() 1501 courseScroll() 1502}) 1503 1504window.onload = () => { 1505 tocScroll() 1506 courseScroll() 1507} 1508 1509/* jquery.poptrox.js v2.5.2-dev | (c) n33 | n33.co | MIT licensed */ 1510!function(e){e.fn.poptrox_disableSelection=function(){return e(this).css("user-select","none").css("-khtml-user-select","none").css("-moz-user-select","none").css("-o-user-select","none").css("-webkit-user-select","none")},e.fn.poptrox=function(o){function t(){i=e(window).width(),s=e(window).height()+r.windowHeightPad;var o=Math.abs(x.width()-x.outerWidth()),t=Math.abs(x.height()-x.outerHeight()),p=(w.width(),w.height(),i-2*r.windowMargin-o),n=s-2*r.windowMargin-t;x.css("min-width",r.popupWidth).css("min-height",r.popupHeight),v.children().css("max-width",p).css("max-height",n)}if(0==this.length)return e(this);if(this.length>1){for(var p=0;p<this.length;p++)e(this[p]).poptrox(o);return e(this)}var i,s,r=e.extend({preload:!1,baseZIndex:1e3,fadeSpeed:300,overlayColor:"#000000",overlayOpacity:.6,overlayClass:"poptrox-overlay",windowMargin:50,windowHeightPad:0,selector:"a",caption:null,parent:"body",popupSpeed:300,popupWidth:200,popupHeight:100,popupIsFixed:!1,useBodyOverflow:!1,usePopupEasyClose:!0,usePopupForceClose:!1,usePopupLoader:!0,usePopupCloser:!0,usePopupCaption:!1,usePopupNav:!1,usePopupDefaultStyling:!0,popupBackgroun
1510dColor:"#FFFFFF",popupTextColor:"#000000",popupLoaderTextSize:"2em",popupCloserBackgroundColor:"#000000",popupCloserTextColor:"#FFFFFF",popupCloserTextSize:"20px",popupPadding:10,popupCaptionHeight:60,popupCaptionTextSize:null,popupBlankCaptionText:"(untitled)",popupCloserText:"×",popupLoaderText:"••••",popupClass:"poptrox-popup",popupSelector:null,popupLoaderSelector:".loader",popupCloserSelector:".closer",popupCaptionSelector:".caption",popupNavPreviousSelector:".nav-previous",popupNavNextSelector:".nav-next",onPopupClose:null,onPopupOpen:null},o),n=e(this),a=e("body"),l=e('<div class="'+r.overlayClass+'"></div>'),u=e(window),d=[],h=0,g=!1,f=new Array;r.usePopupLoader||(r.popupLoaderSelector=null),r.usePopupCloser||(r.popupCloserSelector=null),r.usePopupCaption||(r.popupCaptionSelector=null),r.usePopupNav||(r.popupNavPreviousSelector=null,r.popupNavNextSelector=null);var x;x=e(r.popupSelector?r.popupSelector:'<div class="'+r.popupClass+'">'+(r.popupLoaderSelector?'<div class="loader">'+r.popupLoaderText+"</div>":"")+'<div class="pic"></div>'+(r.popupCaptionSelector?'<div class="caption"></div>':"")+(r.popupCloserSelector?'<span class="closer">'+r.popupCloserText+"</span>":"")+(r.popupNavPreviousSelector?'<div class="nav-previous"></div>':"")+(r.popupNavNextSelector?'<div class="nav-next"></div>':"")+"</div>");var v=x.find(".pic"),w=e(),b=x.find(r.popupLoaderSelector),m=x.find(r.popupCaptionSelector),C=x.find(r.popupCloserSelector),y=x.find(r.popupNavNextSelector),S=x.find(r.popupNavPreviousSelector),P=y.add(S);if(r.usePopupDefaultStyling&&(x.css("background",r.popupBackgroundColor).css("color",r.popupTextColor).css("padding",r.popupPadding+"px"),m.length>0&&(x.css("padding-bottom",r.popupCaptionHeight+"px"),m.css("position","absolute").css("left","0").css("bottom","0").css("width","100%").css("text-align","center").css("height",r.popupCaptionHeight+"px").css("line-height",r.popupCaptionHeight+"px"),r.popupCaptionTextSize&&m.css("font-size",popupCaptionTextSize)),C.length>0&&C.html(r.popupCloserText).css("font-size",r.popupCloserTextSize).css("background",r.popupCloserBackgroundColor).css("color",r.popupCloserTextColor).css("display","block").css("width","40px").css("height","40px").css("line-height","40px").css("text-align","center").css("position","absolute").css("text-decoration","none").css("outline","0").css("top","0").css("right","-40px"),b.length>0&&b.html("").css("position","relative").css("font-size",r.popupLoaderTextSize).on("startSpinning",function(o){var t=e("<div>"+r.popupLoaderText+"</div>");t.css("height",Math.floor(r.popupHeight/2)+"px").css("overflow","hidden").css("line-height",Math.floor(r.popupHeight/2)+"px").css("text-align","center").css("margin-top",Math.floor((x.height()-t.height()+(m.length>0?m.height():0))/2)).css("color",r.popupTextColor?r.popupTextColor:"").on("xfin",function(){t.fadeTo(300,.5,function(){t.trigger("xfout")})}).on("xfout",function(){t.fadeTo(300,.05,function(){t.trigger("xfin")})}).trigger("xfin"),b.append(t)}).on("stopSpinning",function(e){var o=b.find("div");o.remove()}),2==P.length)){P.css("font-size","75px").css("text-align","center").css("color","#fff").css("text-shadow","none").css("height","100%").css("position","absolute").css("top","0").css("opacity","0.35").css("cursor","pointer").css("box-shadow","inset 0px 0px 10px 0px rgba(0,0,0,0)").poptrox_disableSelection();var k,T;r.usePopupEasyClose?(k="100px",T="100px"):(k="75%",T="25%"),y.css("right","0").css("width",k).html('<div style="position: absolute; height: 100px; width: 125px; top: 50%; right: 0; margin-top: -50px;">></div>'),S.css("left","0").css("width",T).html('<div style="position: absolute; height: 100px; width: 125px; top: 50%; left: 0; margin-top: -50px;"><</div>')}return u.on("resize orientationchange",function(){t()}),m.on("update",function(e,o){o&&0!=o.length||(o=r.popupBlankCaptionText),m.html(o)}),C.css("cursor","pointer").on("click",function(e){return e.preventDefault(),e.stopPropagation(),x.trigger("poptrox_close"),!0}),y.on("click",function(e){e.stopPropagation(),e.preventDefault(),x.trigger("poptrox_next")}),S.on("click",function(e){e.stopPropagation(),e.preventDefault(),x.trigger("poptrox_previous")}),l.css("position","fixed").css("left",0).css("top",0).css("z-index",r.baseZIndex).css("width","100%").css("height","100%").css("text-align","center").css("cursor","pointer").appendTo(r.parent).prepend('<div style="display:inline-block;height:100%;vertical-align:middle;"></div>').append('<div style="position:absolute;
1510left:0;top:0;width:100%;height:100%;background:'+r.overlayColor+";opacity:"+r.overlayOpacity+";filter:alpha(opacity="+100*r.overlayOpacity+');"></div>').hide().on("touchmove",function(e){return!1}).on("click",function(e){e.preventDefault(),e.stopPropagation(),x.trigger("poptrox_close")}),x.css("display","inline-block").css("vertical-align","middle").css("position","relative").css("z-index",1).css("cursor","auto").appendTo(l).hide().on("poptrox_next",function(){var e=h+1;e>=d.length&&(e=0),x.trigger("poptrox_switch",[e])}).on("poptrox_previous",function(){var e=h-1;0>e&&(e=d.length-1),x.trigger("poptrox_switch",[e])}).on("poptrox_reset",function(){t(),x.data("width",r.popupWidth).data("height",r.popupHeight),b.hide().trigger("stopSpinning"),m.hide(),C.hide(),P.hide(),v.hide(),w.attr("src","").detach()}).on("poptrox_open",function(e,o){return g?!0:(g=!0,r.useBodyOverflow&&a.css("overflow","hidden"),r.onPopupOpen&&r.onPopupOpen(),x.addClass("loading"),void l.fadeTo(r.fadeSpeed,1,function(){x.trigger("poptrox_switch",[o,!0])}))}).on("poptrox_switch",function(o,p,i){var s;if(!i&&g)return!0;if(g=!0,x.addClass("loading").css("width",x.data("width")).css("height",x.data("height")),m.hide(),w.attr("src")&&w.attr("src",""),w.detach(),s=d[p],w=s.object,w.off("load"),v.css("text-indent","-9999px").show().append(w),"ajax"==s.type?e.get(s.src,function(e){w.html(e),w.trigger("load")}):w.attr("src",s.src),"image"!=s.type){var n,a;n=s.width,a=s.height,"%"==n.slice(-1)&&(n=parseInt(n.substring(0,n.length-1))/100*u.width()),"%"==a.slice(-1)&&(a=parseInt(a.substring(0,a.length-1))/100*u.height()),w.css("position","relative").css("outline","0").css("z-index",r.baseZIndex+100).width(n).height(a)}b.trigger("startSpinning").fadeIn(300),x.show(),r.popupIsFixed?(x.removeClass("loading").width(r.popupWidth).height(r.popupHeight),w.on('load', function(){w.off("load"),b.hide().trigger("stopSpinning"),m.trigger("update",[s.captionText]).fadeIn(r.fadeSpeed),C.fadeIn(r.fadeSpeed),v.css("text-indent",0).hide().fadeIn(r.fadeSpeed,function(){g=!1}),h=p,P.fadeIn(r.fadeSpeed)})):w.on('load', function(){t(),w.off("load"),b.hide().trigger("stopSpinning");var e=w.width(),o=w.height(),i=function(){m.trigger("update",[s.captionText]).fadeIn(r.fadeSpeed),C.fadeIn(r.fadeSpeed),v.css("text-indent",0).hide().fadeIn(r.fadeSpeed,function(){g=!1}),h=p,P.fadeIn(r.fadeSpeed),x.removeClass("loading").data("width",e).data("height",o).css("width","auto").css("height","auto")};e==x.data("width")&&o==x.data("height")?i():x.animate({width:e,height:o},r.popupSpeed,"swing",i)}),"image"!=s.type&&w.trigger("load")}).on("poptrox_close",function(){return g&&!r.usePopupForceClose?!0:(g=!0,x.hide().trigger("poptrox_reset"),r.onPopupClose&&r.onPopupClose(),void l.fadeOut(r.fadeSpeed,function(){r.useBodyOverflow&&a.css("overflow","auto"),g=!1}))}).trigger("poptrox_reset"),r.usePopupEasyClose?(m.on("click","a",function(e){e.stopPropagation()}),x.css("cursor","pointer").on("click",function(e){e.stopPropagation(),e.preventDefault(),x.trigger("poptrox_close")})):x.on("click",function(e){e.stopPropagation()}),u.keydown(function(e){if(x.is(":visible"))switch(e.keyCode){case 37:case 32:if(r.usePopupNav)return x.trigger("poptrox_previous"),!1;break;case 39:if(r.usePopupNav)return x.trigger("poptrox_next"),!1;break;case 27:return x.trigger("poptrox_close"),!1}}),n.find(r.selector).each(function(o){var t,p,i=e(this),s=i.find("img"),n=i.data("poptrox");if("ignore"!=n&&i.attr("href")){if(t={src:i.attr("href"),captionText:s.attr("title"),width:null,height:null,type:null,object:null,options:null},r.caption){if("function"==typeof r.caption)c=r.caption(i);else if("selector"in r.caption){var a;a=i.find(r.caption.selector),"attribute"in r.caption?c=a.attr(r.caption.attribute):(c=a.html(),r.caption.remove===!0&&a.remove())}}else c=s.attr("title");if(t.captionText=c,n){var l=n.split(",");0 in l&&(t.type=l[0]),1 in l&&(p=l[1].match(/([0-9%]+)x([0-9%]+)/),p&&3==p.length&&(t.width=p[1],t.height=p[2])),2 in l&&(t.options=l[2])}if(!t.type)switch(p=t.src.match(/\/\/([a-z0-9\.]+)\/.*/),(!p||p.length<2)&&(p=[!1]),p[1]){case"api.soundcloud.com":t.type="soundcloud";break;case"youtu.be":t.type="youtube";break;case"vimeo.com":t.type="vimeo";break;case"wistia.net":t.type="wistia";break;case"bcove.me":t.type="bcove";break;default:t.type="image"}switch(p=t.src.match(/\/\/[a-z0-9\.]+\/(.*)/),t.type){case"iframe":t.object=e('<iframe src="" frameborder="0"></iframe>'),t.object.on("click",function(e){e.stopPropagation()}).css("cursor","auto"),t.width&&t.height||(t.width="600",t.height="400");break;case"ajax":t.object=e('<div class="poptrox-ajax"></div>'),t.object.on("click",function(e){e.stopPropagation()}).css("cursor","auto").css("overflow","auto"),t.width&&t.height||(t.width="600",t.height="400");break;case"soundcloud":t.object=e('<iframe scrolling="no" frameborder="no" src=""></iframe>'),t.src="//w.soundcloud.com/player/?url="+escape(t.src)+(t.options?"&"+t.options:""),t.width="600",t.height="166";break;case"youtube":t.object=e('<iframe src="" frameborder="0" allowfullscreen="1"></iframe>'),t.src="//www.youtube.com/embed/"+p[1]+(t.options?"?"+t.options:""),t.width&&t.height||(t.width="800",t.height="480");break;case"vimeo":t.object=e('<iframe src="" frameborder="0" allowFullScreen="1"></iframe>'),t.src="//player.vimeo.com/video/"+p[1]+(t.options?"?"+t.options:""),t.width&&t.height||(t.width="800",t.height="480");break;case"wistia":t.object=e('<iframe src="" frameborder="0" allowFullScreen="1"></iframe>'),t.src="//fast.wistia.net/"+p[1]+(t.options?"?"+t.options:""),t.width&&t.height||(t.width="800",t.height="480");break;case"bcove":t.object=e('<iframe src="" frameborder="0" allowFullScreen="1" width="100%"></iframe>'),t.src="//bcove.me/"+p[1]+(t.options?"?"+t.options:""),t.width&&t.height||(t.width="640",t.height="360");break;default:if(t.object=e('<img src="" alt="" style="vertical-align:bottom" />'),r.preload){var p=document.createElement("img");p.src=t.src,f.push(p)}t.width=i.attr("width"),t.height=i.attr("height")}"file:"==window.location.protocol&&t.src.match(/^\/\//)&&(t.src="http:"+t.src),d.push(t),s.removeAttr("title"),i.removeAttr("href").css("cursor","pointer").css("outline",0).on("click",function(e){e.preventDefault(),e.stopPropagation(),x.trigger("poptrox_open",[o])})}}),n.prop("_poptrox",r),n}}(jQuery); 1511 1512var imageDiv = document.getElementById("woocommerceStep"); 1513 1514function imageWrite() { 1515 if (currenturl.includes('/cart/')) { 1516 var imageStep = "<h1>Complete Your Purchase</h1>"; 1517 imageStep += "<img src='/wp-content/themes/msp/images/woocommerce/step-1.png' />"; 1518 $(imageDiv).prepend(imageStep); 1519 } 1520 if (currenturl.includes('/checkout/')) { 1521 console.log('stuff'); 1522 var imageStep = "<h1>Enter Your Purchase Details</h1>"; 1523 imageStep += "<img src='/wp-content/themes/msp/images/woocommerce/step-2.png' />"; 1524 $(imageDiv).prepend(imageStep); 1525 } 1526 if (currenturl.includes('/product/onstrategy-template/')) { 1527 var imageStep = "<h1>OnStrategy Template</h1>"; 1528 imageStep += "<img src='/wp-content/themes/msp/images/woocommerce/step-1.png' />"; 1529 $(imageDiv).prepend(imageStep); 1530 } 1531 if (currenturl.includes('/product/essentials-guide-to-strategic-planning-basics/')) { 1532 var imageStep = "<h1>Essentials Guide to Strategic Planning</h1>"; 1533 imageStep += "<img src='/wp-content/themes/msp/images/woocommerce/step-1.png' />"; 1534 $(imageDiv).prepend(imageStep); 1535 } 1536 if (currenturl.includes('/product/new-essentials-guide-to-strategic-planning/')) { 1537 var imageStep = "<h1>Essentials Guide to Strategic Planning</h1>"; 1538 imageStep += "<img src='/wp-content/themes/msp/images/woocommerce/step-1.png' />"; 1539 $(imageDiv).prepend(imageStep); 1540 } 1541} 1542//only trigger on pricing page 1543function setBoom(cname, cvalue, exdays) { 1544 var cname = '_boomedCSO'; 1545 var exdays = 90; 1546 var d = new Date(); 1547 d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000)); 1548 var expires = 'expires=' + d.toGMTString(); 1549 document.cookie = cname + '=' + cvalue + '; ' + expires + '; path=/'; 1550} 1551 1552function getBoom(cname) { 1553 var name = cname; 1554 var ca = document.cookie.split(';'); 1555 for (var i = 0; i < ca.length; i++) { 1556 var c = ca[i]; 1557 while (c.charAt(0) == ' ') c = c.substring(1); 1558 if (c.indexOf(name) == 0) { 1559 return c.substring(name.length, c.length); 1560 } 1561 } 1562 return ''; 1563} 1564 1565function boomer() { 1566 const _hasBoom = getBoom('_boomedCSO') 1567 if ( _hasBoom == '' || _hasBoom == null ) { 1568 setBoom('_boomedTemplate', 'Boomed', 365) 1569 $('body').mouseleave(function(){ 1570 $('body').addClass('boomed') 1571 }) 1572 } 1573} 1574 1575function boomerDestroy() { 1576 $('.boomExit').click(function () { 1577 $('body').removeClass('boomed').addClass('scrollable') 1578 $('.boomerang').remove() 1579 }) 1580} 1581 1582boomer() 1583boomerDestroy() 1584function start() { 1585 imageWrite() 1586} 1587
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.