This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <!-- Google Tag Manager --> | |
| <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': | |
| new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], | |
| j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= | |
| 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); | |
| })(window,document,'script','dataLayer','GTM-N49NQGM8');</script> | |
| <!-- End Google Tag Manager --> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <!-- Google Tag Manager --> | |
| <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': | |
| new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], | |
| j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= | |
| 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); | |
| })(window,document,'script','dataLayer','GTM-NWDRQ556');</script> | |
| <!-- End Google Tag Manager --> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | {% set apiCacheKey = 'emsi-nocDetail-'~noc~'-'~region|lower|replace({' ': ''}) %} | |
| {% set EmsiData = craft.app.cache.get(apiCacheKey) %} | |
| {% if EmsiData is empty or currentUser.admin %} | |
| {# if it's empty let's 1. do the API call and then 2. set the cache #} | |
| {% set apiCareerQuery = { | |
| fields : 'age,annual-earnings,annual-openings,categories,core-tasks,description,education-attainment-levels,employment,employment-current,hourly-earnings,median-earnings,national-lq,noc-id,pathways,percent-female,percent-male,singular-title,title,title-slug,typical-ed-level', | |
| nocs: noc | |
| } %} | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <!-- Standard Meta --> | |
| <meta charset="utf-8"/> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"> | |
| <meta http-equiv="refresh" content="10800" > | |
| <!-- Site Properities --> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | var URL = ' https://alberta-webappservice.mybluemix.net/'; | |
| document.addEventListener("DOMContentLoaded", function(e) { | |
| var yanaBlock = document.querySelector("body"); | |
| var yanaApp = document.createElement( 'div'); | |
| yanaApp.setAttribute('id', 'yana-wrapper'); | |
| yanaApp.style.position= "fixed"; | |
| yanaApp.style.bottom= "0"; | |
| yanaApp.style.right= "110px"; | |
| yanaApp.style.width= "375px"; |