PageSourceSearch

https://static.fieldstonehomes.com/fieldstonehomes/js/oi/oivideo.js?v=af23896

js fieldstonehomes.com collected 2026-09-28 14:04:03 UTC 5,677 bytes, 1 lines download raw bytes

1/*! oivideo 20.08.06 */"use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.keys||(Object.keys=function(e){if(e!==Object(e))throw new TypeError("Object.keys called on a non-object");var o,t=[];for(o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.push(o);return t});var lazyBrowser="loading"in HTMLIFrameElement.prototype;function onYouTubeIframeAPIReady(){void 0!==window.pagevideos?window.pagevideos.onYouTubeIframeAPIReady():setTimeout(function(){window.OiVideo.onYouTubeIframeAPIReady()},500)}!function(P){var e={};e.go=function(t,e){t=P.extend(!0,{sendToGTM:!0,gtm:{event:"oi-video",eventCategory:"Engagement",eventAction:!1,eventLabel:!1}},t);var o=function(){return"object"===("undefined"==typeof Vimeo?"undefined":_typeof(Vimeo))},n=function(){return"object"===("undefined"==typeof YT?"undefined":_typeof(YT))},i=function(){return u("youtube")},a=function(){return u("vimeo")},u=function(e){return 0<Object.keys(r[e]).length},r=void 0!==window.oivideos?window.oivideos:{youtube:{},vimeo:{}},d={youtube:{pageHas:function(){return i()},api:{needed:function(){return i()&&!n()},loaded:function(){return n()},url:"https://www.youtube.com/iframe_api",callback:!1}},vimeo:{pageHas:function(){a()},api:{needed:function(){return a()&&!o()},loaded:function(){return o()},url:"https://player.vimeo.com/api/player.js",callback:function(){p()}}},p3sdk:{loaded:[]}},l=function(e){var o=P("#"+e);if(o&&!o.attr("src")){var t=o.data("src");if(t)return o.attr("src",t),!0}return!1},c=function(e,o){l(e);var t=new YT.Player(e,{events:{onReady:y,onStateChange:s}});o.player=t};function y(e){}function s(e){var o=e.data,t=e.target,n=t.getVideoData();t.label="YouTube | "+n.title+" | "+n.video_id,t.duration=t.getDuration(),o==YT.PlayerState.PAUSED?(P(document).trigger("oivideo_on_pause",["youtube",t]),m("Video Pause",t.label)):o==YT.PlayerState.PLAYING&&(P(document).trigger("oivideo_on_play",["youtube",t]),m("Video Play",t.label),b("oi-video")),o==YT.PlayerState.PLAYING&&setTimeout(f,2e3,t)}function f(e){if(e.getPlayerState()==YT.PlayerState.PLAYING){var o=e.duration-e.getCurrentTime()<=1.5?1:(Math.floor(e.getCurrentTime()/e.duration*4)/4).toFixed(2);if((!e.lastPosition||o>e.lastPosition)&&100*(e.lastPosition=o)!=0){var t=100*o,n="Video "+t+"% Played";P(document).trigger("oivideo_on_progress",["youtube",e,t]),m(n,e.label)}(!e.lastcheck||e.getCurrentTime()>e.lastcheck)&&(1!=e.lastPosition&&setTimeout(f,2e3,e),e.lastcheck=e.getCurrentTime())}}var p=function(){a()&&P.each(r.vimeo,function(e,o){!o.autoload&&lazyBrowser||v(e,o)})},v=function(e,o){l(e);var t=new Vimeo.Player(e);t.getVideoId().then(function(e){t.video_id=e,t.getDuration().then(function(e){t.duration=e,t.getVideoTitle().then(function(e){t.title=e,t.label="Vimeo | "+e+" | "+t.video_id}).catch(function(e){})}).catch(function(e){})}).catch(function(e){}),t.is_playing=!1,t.on("play",function(){t.is_playing||(P(document).trigger("oivideo_on_play",["vimeo",t]),m("Video Play",t.label),b("oi-video"),setTimeout(g,2e3,t),t.is_playing=!0)}),t.on("pause",function(){t.is_playing&&(P(document).trigger("oivideo_on_pause",["vimeo",t]),m("Video Pause",t.label),t.is_playing=!1)}),o.player=t};function g(i){i.getCurrentTime().then(function(e){var o=i.duration-e<=1.5?1:(Math.floor(e/i.duration*4)/4).toFixed(2);if((!i.lastPosition||o>i.lastPosition)&&100*(i.lastPosition=o)!=0){var t=100*o,n="Video "+t+"% Played";P(document).trigger("oivideo_on_progress",["vimeo",i,t]),m(n,i.label)}(!i.lastcheck||e>i.lastcheck)&&(1!=i.lastPosition&&setTimeout(g,2e3,i),i.lastcheck=e)}).catch(function(e){})}function m(e,o){"object"===("undefined"==typeof google_tag_manager?"undefined":_typeof(google_tag_manager))&&window.dataLayer.push({event:t.event,eventCategory:t.eventCategory,eventAction:t.eventAction||e,eventLabel:t.eventLabel||o})}function b(e){void 0!==window.hfaDataLayer&&window.hfaDataLayer.push({event:e})}var w=function(e){return e?i()&&e in r.youtube&&r.youtube[e].player&&[1,3].includes(r.youtube[e].player.getPlayerState())?(r.youtube[e].player.pauseVideo(),!0):!!(a()&&e in r.vimeo&&r.vimeo[e].player&&r.vimeo[e].player.is_playing)&&(r.vimeo[e].player.pause(),!0):(P.each(r,function(e,o){P.each(r[e],function(e,o){
1w(e)})}),!0)};var h,_;if(h=[],_=[],P.each(d,function(e,o){o.api&&o.api.needed()&&!o.api.loaded()&&(h.push(o.api.url),o.api.callback&&_.push(o.api.callback))}),0<h.length&&new OiJs.load(h,function(){P.each(_,function(e,o){o.call()})}),e&&"function"==typeof e){e.call(this)}return{onYouTubeIframeAPIReady:function(){i()&&P.each(r.youtube,function(e,o){!o.autoload&&lazyBrowser||c(e,o)})},play:function(e){return!(!e||(i()&&e in r.youtube&&r.youtube[e].player&&![1,3].includes(r.youtube[e].player.getPlayerState())?(r.youtube[e].player.playVideo(),0):!(a()&&e in r.vimeo&&r.vimeo[e].player)||r.vimeo[e].player.is_playing||(r.vimeo[e].player.play(),0)))},pause:w,loadVideo:function(e){var o,t;if(e in r.youtube)t="youtube",o=r.youtube[e];else{if(!(e in r.vimeo))return!1;t="vimeo",o=r.vimeo[e]}if(o.player)return!1;o.p3sdk&&!d.p3sdk.loaded.includes(o.p3sdk)?new OiJs.load([o.p3sdk],function(){d.p3sdk.loaded.push(o.p3sdk),"youtube"==t?c(e,o):v(e,o)}):"youtube"==t?c(e,o):v(e,o)},vsources:d,loaded:r}},window.OiVideo=e}(jQuery),window.pagevideos=new OiVideo.go,"undefined"!=typeof jQuery&&jQuery(document).ready(function(e){void 0!==window.p3sdk_scripts&&new OiJs.load(window.p3sdk_scripts,function(){window.p3sdk_scripts.forEach(function(e){window.pagevideos.vsources.p3sdk.loaded.push(e)})})});

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.