| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <!-- GENERATED: Fri, 21 Feb 2014 16:30:26 -0500 --> | |
| <title>Indianapolis, IN Forecast Widget</title> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
| <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> | |
| <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.1/jquery-ui.min.js"></script> | |
| <script src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script> | |
| <script src="http://media.lintvnews.com/weather/widget/jquery.colorbox.min.js"></script> | |
| <script src="http://static.itk.wxc.com/2.2.0.0/wxc_itk.js"></script> | |
| <script src="http://static.itk.wxc.com/2.2.0.0/forecastGraph/wxc_forecastGraph.js"></script> | |
| <script src="http://media.lintvnews.com/weather/widget/geoTool-0.1.0.js"></script> | |
| <script src="http://media.lintvnews.com/weather/widget/widgets-0.5.2.js"></script> | |
| <!-- JS: functions.js --> | |
| <script language="JavaScript" type="text/javascript"> | |
| function getURLParameter(name) { | |
| param = (new RegExp('[?|&](' + name + ')(=' + '([^&;]+?)(&|#|;|$))?').exec(location.search)||[,""]); | |
| return (param[3] ? decodeURIComponent(param[3].replace(/\+/g, '%20')) : param[1].length>0) || null; | |
| } | |
| </script> | |
| <!-- /JS: functions.js --> | |
| <!-- lin omniture variables --> | |
| <script language="JavaScript" type="text/javascript"> | |
| var lin_s_account = 'dpsdpswish,dpsglobal'; | |
| var lin_linkInternalFilters = ''; | |
| var lin_pageName = 'widget:weather:forecast:detail'; | |
| var lin_pageType = ''; | |
| var lin_prop1 = 'widget'; | |
| var lin_prop2 = 'widget:weather'; | |
| var lin_prop3 = 'widget:weather:forecast'; | |
| var lin_prop4 = 'widget:weather:forecast'; | |
| var lin_hier1 = 'widget,weather,forecast'; | |
| var lin_prop22 = 'Indianapolis, IN Forecast Widget'; | |
| var lin_prop23 = 'wood-tv8-forecast-widget'; | |
| var lin_prop24 = 'widget'; | |
| var lin_prop25 = ''; | |
| var lin_campaign = ''; | |
| var lin_events = ''; | |
| var lin_products = ''; | |
| var lin_purchaseID = ''; | |
| var lin_transactionID = ''; | |
| var lin_eVar1 = ''; | |
| var lin_hier2 = ''; | |
| var lin_prop51 = null; | |
| var lin_eV51 = null; | |
| var s_phone = false; | |
| if('function' == typeof getURLParameter && getURLParameter('phone')) { | |
| s_phone = true; | |
| lin_prop51 = 'D=v51'; | |
| lin_eV51 = 'smartphone web'; | |
| } | |
| </script> | |
| <!-- /lin omniture variables --> | |
| <!-- s_code_lin_v2_custom_tracking_only.js --> | |
| <script language="JavaScript" type="text/javascript" src="http://media.lintvnews.com/s_code_lin_v2_custom_tracking_only.js"></script> | |
| <!-- /s_code_lin_v2_custom_tracking_only.js --> | |
| <!-- mobile segment --> | |
| <script language="JavaScript" type="text/javascript"> | |
| if(s_phone) { s.newsTouch = s.prop51 = lin_prop51; s.eVar51 = lin_eV51; } | |
| </script> | |
| <!-- /mobile segment --> | |
| <link rel="stylesheet" type="text/css" href="http://media.lintvnews.com/weather/widget/lin-weather-widgets.css" media="all" /> | |
| </head> | |
| <body> | |
| <script> | |
| /* JS: custom_tracking.js */ | |
| var _gaq = _gaq || []; | |
| function custom_tracking(name,type){ | |
| var self = this; | |
| this.ga = this.omniture = false; | |
| this.type = type; | |
| this.name = name; | |
| this.linkTrackVars = 'prop1,prop51,eVar51'; | |
| this.setGA = function(trackingID) { | |
| this.ga = true; | |
| if('string' == typeof trackingID){ | |
| _gaq.push(['_setAccount', trackingID]); | |
| (function() { | |
| var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; | |
| ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; | |
| var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); | |
| })(); | |
| } | |
| return this; | |
| }; | |
| this.setOmniture = function() { | |
| this.omniture = true; | |
| this.pageName = s.pageName; | |
| return this; | |
| }; | |
| this.onLoadComplete = function(){ | |
| if(this.omniture || this.ga){ | |
| this.trackCustom('Loading','Complete'); | |
| } | |
| }; | |
| this.trackCustom = function(action,detail,specify_type) { | |
| specify_type = specify_type | false; | |
| if (!specify_type && this.omniture || specify_type=='om') { | |
| var s = s_gi(lin_s_account); | |
| trackData = { | |
| events : (action + ' ' + detail).replace(' ','-'), | |
| prop1 : self.pageName, | |
| linkTrackVars : self.linkTrackVars, | |
| linkTrackEvents : (action + '-' + detail).replace(' ','-') | |
| }; | |
| // record event | |
| s.tl(true, 'o', 'WX Widget / ' + this.type + ' / ' + this.name + ' / ' + action + ': ' + detail, trackData); | |
| } | |
| if (!specify_type && this.ga||specify_type=='ga') { | |
| _gaq.push(['_trackEvent', 'Weather Widget / ' + this.type, this.name, action + ' : ' + detail]); | |
| } | |
| }; | |
| this.trackOutbound = function(el) { | |
| if (this.omniture){ | |
| var s = s_gi(lin_s_account); | |
| // record event | |
| s.tl(el, 'e', 'WX Widget / ' + this.type + ' / ' + this.name + ' / Link: Outbound'); | |
| } | |
| if (this.ga) { | |
| _gaq.push(['_trackEvent', 'Weather Widget / ' + this.type, 'link', 'outbound']); | |
| } | |
| }; | |
| $(function(){self.onLoadComplete();}); | |
| } | |
| /* /JS: custom_tracking.js */ | |
| var myForecast = new LinWeatherWidget('forecast','Indianapolis, IN'); | |
| myForecast | |
| .setOmniture() | |
| .setGA('UA-32507368-14') | |
| .write({ | |
| wxcbasics: { | |
| host: 'wish', | |
| passkey: '1cfb1b691a5db330364479a12479cdb2' | |
| }, | |
| /* zip: '',*/ | |
| location: { | |
| label: 'Indianapolis, IN', | |
| lat: 39.768, | |
| lon: -86.158 }, | |
| defaultView: 'extended', // 'hourly' or 'extended' | |
| days: 7, | |
| show: [ | |
| 'feelslike' | |
| ,'wind' | |
| ,'humidity' | |
| ,'dewpoint' | |
| ,'day' | |
| ,'icon' | |
| ,'weather' | |
| ,'hitemp' | |
| ,'lotemp' | |
| ], | |
| hide: [ | |
| 'precip' ] | |
| }); | |
| </script> | |
| </body></html> |
WEATHER
Subscribe to:
Comments (Atom)
No comments:
Post a Comment