1$(document).ready(function() { 2 $("#featuredVideos").css("visibility", "visible"); 3 window.$('.featuredVideoContent').on('click',function() { 4 console.log('sup'); 5 console.log($(this).data('video-id')); 6 var currentVideo = $(this).data('video-id'); 7 videoLightboxPlay(currentVideo); 8 }); 9 10var bottomPdfForwardUrl = ["https://www.brighttalk.com/channel/13935", "https://www.techtarget.com/searchstorage/feature/The-best-enterprise-data-storage-products-of-2024", "https://www.linkedin.com/posts/delltechnologies_fortune-award-activity-7328053511873552386-eNCo?utm_source=share&utm_medium=member_desktop&rcm=ACoAAALX97IBjGnG6o9HXJBrUXQuyiwbFvvrO9o", "https://www.dell.com/en-us/blog/dell-technologies-recognized-as-a-leader-in-ai-innovation/"]; 11 $('#slider2').bxSlider({ 12 pause: 3000, 13 slideMargin: 20, 14 responsive: true, 15 mode: 'fade', 16 //nextSelector: '#slider2-next', 17 //prevSelector: '#slider2-prev', 18 hideControlOnEnd: true, 19 touchEnabled: false, 20 pager: true, 21 infiniteLoop: false, 22 autoControls: true, 23 24 25 26 // pagerSelector: '#controlsGoHere', 27 // nextText: '<div class="nextarrowL"><span>' + nextTeaser[0] +'</span></div><div class="nextarrowR">❯</div>', 28 29 30 31 nextText: '<div class="nextarrow"></div>', 32 prevText: '<div class="prevarrow"></div>', 33 onSliderLoad: function(){ 34 console.log('Testing - loaded slider2'); 35 window.$('.bx-wrapper .bottomCarouselPDFs li').on('click',function() { 36 var index = $(this).index(); 37 // console.log('Testing - .bx-wrapper slider2 clicked onSliderLoad li'); 38 // console.log('Testing - should open ' + bottomPdfForwardUrl[index] + ' index is ' + index); 39 window.open(bottomPdfForwardUrl[index], '_blank'); 40 41 var tHref = bottomPdfForwardUrl[index]; 42 micrositesEventHandler({ 43 data: {eventArgs: ['Click Carousel Item', tHref,'cusdellcsg',null,false]}, 44 target: $(document) 45 }); 46 47 }); 48 }, 49 onSlideAfter: function(currentIndex){ 50 } 51 }); 52 53 54function navWidth(selector) { 55 var totalWidth = 0; 56 $(selector).each(function() { 57 totalWidth += $(this).outerWidth(true); 58 }); 59 return totalWidth; 60} 61 62totalWidth = navWidth('#micrositeNavigation .desktopNav li:not(:first-child)'); 63console.log('width is: ' + totalWidth); 64 65if(totalWidth > 860){ 66 console.log('TOO WIDE'); 67 var $list = $('ul.desktopNav'); 68 var $newList = $('<ul class="desktopNav collapsed"></ul>'); 69 $('#micrositeNavigation .desktopNav li:not(:first-child)').appendTo($newList); 70 $list.after($newList); 71 $('<span class="browse-topics">Browse Topics</span>').insertBefore($newList); 72} 73 74$('#micrositeNavigation .browse-topics').on('click',function() { 75 $('.desktopNav.collapsed').toggleClass('open'); 76}); 77 78}); 79 80function micrositesEventHandler(evt) { 81 //category, action, opt_label, opt_value, opt_noninteraction) 82 83 var micrositeEventArgs = evt.data.eventArgs; 84 var uaEventCategory = micrositeEventArgs[0]; 85 var uaEventAction = micrositeEventArgs[1]; 86 var uaEventLabel = micrositeEventArgs[2]; 87 var uaEventValue = micrositeEventArgs[3]; 88 dataLayer.push({'uaEventCategory':uaEventCategory},{'uaEventAction':uaEventAction},{'uaEventLabel':uaEventLabel},{'uaEventValue':uaEventValue}); 89 dataLayer.push({'event':'micrositesEvent'},{'uaEventCategory':uaEventCategory},{'uaEventAction':uaEventAction},{'uaEventLabel':uaEventLabel}); 90} 91 92function videoLightboxPlay(videoID) { 93 console.log('Testing: videoLightboxPlay fired for ' + videoID); 94 if (typeof console == "undefined") {window.console = {log: function () {},assert:function() {} };} 95 $('#playerLightbox').attr('class','playerShow'); 96 if(!iOS) {$('<img class="videoPreLoader" src="https://cdn.ttgtmedia.com/microsites/delltakeyourlifeback/images/loader.gif" />').appendTo('#playerLightbox');} 97 lPlayer.catalog.getVideo(videoID, function(error, video) { 98 if (error) {if (typeof console != "undefined") {console.log('video error: ' + error);}} else {lPlayer.catalog.load(video);lPlayer.play();} 99 }); 100} 101 102var iOS = ( navigator.userAgent.match(/(iPad|iPhone|iPod)/g) ? true : false ), 103 lPlayer = videojs('video-lightbox'); 104 105//close lightbox 106$('#playerClose').on('click',function() {lPlayer.pause();$('#playerLightbox').attr('class','playerHide');if(!iOS) {$('.videoPreLoader').remove();}}); 107 108console.log('Testing: video.js ready'); 109 lPlayer.ready(function() {this.ga(); $('.itemremove').remove();console.log('Testing: remove itemremoves');}); 110 lPlayer.on('loadstart', function() {if (!iOS) {$('.videoPreLoader').hide();console.log('Testing: loadstart');}}); 111 lPlayer.on('play',function() {if (!iOS) {$('.videoPreLoader').hide();console.log('Testing: play');}}); 112 113/* 114$(document).ready(function() { 115 //console.log('Testing: March 16, 2023 409') 116 //var currentSlide; 117 //var slideCount; 118 //var checkNow = true; 119 var id; 120 //var nextTeaser = ['BECOME AN EXPERT', 'BECOME AN EXPERT', 'BECOME AN EXPERT', 'BECOME AN EXPERT']; 121 var videoIDs = [];
122 var numVideos = 0; 123 var displayValue; 124 var slider = $('#videosList.homeVideos').bxSlider({ 125 responsive: true, 126 mode: 'fade', 127 nextSelector: '#slider-next', 128 prevSelector: '#slider-prev', 129 // pager: false, 130 infiniteLoop: true, 131 pagerSelector: '#controlsGoHere', 132 // nextText: '<div class="nextarrowL"><span>' + nextTeaser[0] +'</span></div><div class="nextarrowR">❯</div>', 133 nextText: '<div class="nextarrowR">❯</div>', 134 prevText: '<div class="prevarrow">❮</div>', 135 onSliderLoad: function() { 136 $("#featuredVideos").css("visibility", "visible"); 137 } 138 /*onSliderLoad: function(){ 139 $("#featuredVideos").css("visibility", "visible"); 140 // getVideoData(); 141 $('.featuredVideoContent').each(function(i) { 142 id = $(this).data('video-id'); 143 videoIDs.push(id); 144 console.log('Testing: videoIDs ' + videoIDs); 145 146 // displayValue = $('.bx-wrapper').find('#videosList').find('li')[i].style.display; 147 // console.log('Testing: displayValue ' + displayValue); 148 149 150 //numVideos++; 151 //i++; 152 153 // OG implementation, doesn't work on Chrome 154 // console.log('Testing: Opening video-id for ' + id); 155 // $(this).attr('onclick','videoLightboxPlay(' + $(this).data('video-id') + ');'); 156 }); 157 158 window.$('.featuredVideoContent').on('click',function() { 159 console.log('Testing - .bx-wrapper clicked onSliderLoad'); 160 // $('.bx-wrapper').find('#videosList').find('li')[0].style.display; 161 162 videoLightboxPlay(videoIDs[i]); 163 164 165 /*$('.featuredVideoContent').each(function(i) { 166 console.log('Testing - loop through videos and check for display value'); 167 displayValue = $('.bx-wrapper').find('#videosList').find('li')[i].style.display; 168 console.log('Testing: display values are ' + i + ' or specifically ' + displayValue); 169 if(displayValue !== 'none'){ 170 console.log('Testing: displayValue is not display none, shoulw video? ' + i + ' or specifically ' + videoIDs[i]); 171 videoLightboxPlay(videoIDs[i]); 172 } 173 //i++; 174 }); 175 }); 176 177 /* 178 179 $('.featuredVideoContent').each(function() { 180 // $(this).bind( "click", clicked); 181 // $(this).attr( "onclick", wrapper); 182 }); 183 function wrapper() { 184 return clicked; 185 }; 186 function clicked() { 187 console.log( "Testing: clicked 31523-1251"); 188 }; 189 190 } 191 /* 192 onSlideAfter: function(currentIndex){ 193 console.log("Testing: currentIndex " + currentIndex); 194 window.$('.bx-wrapper').on('click',function() { 195 console.log('Testing - .bx-wrapper clicked onSlideAfter'); 196 // $('.bx-wrapper').find('#videosList').find('li')[0].style.display; 197 // $('.featuredVideoContent').each(function(i) { 198 // console.log('Testing - loop through videos and check for display value'); 199 // displayValue = $('.bx-wrapper').find('#videosList').find('li')[i].style.display; 200 // if(displayValue == 'block'){ 201 // console.log('Testing: Video should be ' + i + ' or specifically ' + videoIDs[i]); 202 // } 203 // i++; 204 // }); 205 }); 206 } 207 }); 208 209 /* 210 $('.bx-next').click(function(){ 211 var current = slider.getCurrentSlide(); 212 $('.nextarrowL span').html(nextTeaser[current]); 213 }); 214 $('.bx-prev').click(function(){ 215 var current = slider.getCurrentSlide(); 216 $('.nextarrowL span').html(nextTeaser[current]); 217 }); 218 219 $('.bx-pager .bx-pager-item').click(function(){ 220 var index = $(this).index(); 221 $('.nextarrowL span').html(nextTeaser[index]); 222 }); 223 */ 224/* 225 console.log('Testing: video.js ready'); 226 lPlayer.ready(function() {this.ga(); $('.itemremove').remove();console.log('Testing: remove itemremoves');}); 227 lPlayer.on('loadstart', function() {if (!iOS) {$('.videoPreLoader').hide();console.log('Testing: loadstart');}}); 228 lPlayer.on('play',function() {if (!iOS) {$('.videoPreLoader').hide();console.log('Testing: play');}}); 229 230 /* 231 if($('body').hasClass('topicpage')) { 232 iPlayer.ready(function() {this.ga();}); 233 } 234 */ 235 236 //play from thumb click 237 238 /* 239 $('img').on('click', function(event) { 240 if (window.location.search.indexOf('test=on') != '-1') { 241 alert('click: ' + event.target.nodeName + ": src=" + $(this).attr('src')); 242 } 243 }); 244 245 246 var getVideoData = function() { 247 currentSlide = slider.getCurrentSlide(); 248 slideCount = slider.getSlideCount(); 249 console.log('Testing currentSlide = ' + currentSlide) 250 console.log('Testing getSlideCount ' + slideCount); 251 }; 252 */ 253 254 255 // var manualVideoIdentify = function() { 256 // if(checkNow == true){ 257 // window.$('.bx-wrapper').on('click',function() { 258 // console.log('Testing - .bx-wrapper clicked'); 259 // // $('.bx-wrapper').find('#videosList').find('li')[0].style.display; 260 // $('.featuredVideoContent').each(function(i) { 261 // console.log('Testing - loop through videos and check for display value'); 262 // displayValue = $('.bx-wrapper').find('#videosList').find('li')[i].style.display; 263 // if(displayValue == 'block'){ 264 // console.log('Testing: Video should be ' + i + ' or specifically ' + videoIDs[i]); 265 // } 266 // i++; 267 // }); 268 // }); 269 // checknow = false;
270 // } 271 // } 272 // manualVideoIdentify(); 273 274 275 276 277 /* 278 $('.topicpage .video-thumb-img').each(function() {$(this).parent().parent().attr('onclick','inlinePlayer(' + $(this).data('video-id') + ');');}); 279 280 $('.topicpage #videosList > li').each(function() { 281 // if ($('#video-inline').data('video-id') == $(this).find('img').data('video-id')) { 282 // $(this).addClass('active'); 283 // } 284 $(this).on('click', function(){ 285 $(this).siblings().removeClass('active'); 286 $(this).addClass('active'); 287 }); 288 }); 289 290 $('.vjs-big-play-button').on('click', function() { 291 $('.topicpage #videosList > li:first-child').addClass('active'); 292 }); 293 *//* 294 295 296 $('.featuredVideoContent').on('click',function() { 297 console.log('whatup'); 298 }); 299 300 //close lightbox 301 $('#playerClose').on('click',function() {lPlayer.pause();$('#playerLightbox').attr('class','playerHide');if(!iOS) {$('.videoPreLoader').remove();}}); 302 303}); 304 305var iOS = ( navigator.userAgent.match(/(iPad|iPhone|iPod)/g) ? true : false ), 306 lPlayer = videojs('video-lightbox'); 307 //iPlayer = videojs('video-inline'); 308 309function videoLightboxPlay(videoID) { 310 console.log('Testing: videoLightboxPlay fired for ' + videoID); 311 if (typeof console == "undefined") {window.console = {log: function () {},assert:function() {} };} 312 $('#playerLightbox').attr('class','playerShow'); 313 if(!iOS) {$('<img class="videoPreLoader" src="https://cdn.ttgtmedia.com/microsites/delltakeyourlifeback/images/loader.gif" />').appendTo('#playerLightbox');} 314 lPlayer.catalog.getVideo(videoID, function(error, video) { 315 if (error) {if (typeof console != "undefined") {console.log('video error: ' + error);}} else {lPlayer.catalog.load(video);lPlayer.play();} 316 }); 317} 318 319/* 320function inlinePlayer(videoID) { 321 console.log('Testing: inlinePlayer fired for ' + videoID); 322 if (typeof console == "undefined") {window.console = {log: function () {},assert:function() {} };} 323 iPlayer.catalog.getVideo(videoID, function(error, video) { 324 if (error) { 325 if (typeof console != "undefined") { 326 console.log('video error: ' + error); 327 } 328 } else { 329 iPlayer.catalog.load(video); 330 iPlayer.play(); 331 } 332 }); 333} 334*/ 335 336 337 338/* old video player */ 339 340$(document).ready(function() { 341 console.log('Testing: video.js ready'); 342 lPlayer.ready(function() {this.ga(); $('.itemremove').remove();console.log('Testing: remove itemremoves');}); 343 lPlayer.on('loadstart', function() {if (!iOS) {$('.videoPreLoader').hide();console.log('Testing: loadstart');}}); 344 lPlayer.on('play',function() {if (!iOS) {$('.videoPreLoader').hide();console.log('Testing: play');}}); 345 346 if($('body').hasClass('topicpage')) { 347 iPlayer.ready(function() {this.ga();}); 348 } 349 350 //play from thumb click 351 $('img').on('click', function(event) { 352 if (window.location.search.indexOf('test=on') != '-1') { 353 alert('click: ' + event.target.nodeName + ": src=" + $(this).attr('src')); 354 } 355 }); 356 357 358 var getVideoData = function() { 359 currentSlide = slider.getCurrentSlide(); 360 slideCount = slider.getSlideCount(); 361 console.log('Testing currentSlide = ' + currentSlide) 362 console.log('Testing getSlideCount ' + slideCount); 363 }; 364 365 366 // var manualVideoIdentify = function() { 367 // if(checkNow == true){ 368 // window.$('.bx-wrapper').on('click',function() { 369 // console.log('Testing - .bx-wrapper clicked'); 370 // // $('.bx-wrapper').find('#videosList').find('li')[0].style.display; 371 // $('.featuredVideoContent').each(function(i) { 372 // console.log('Testing - loop through videos and check for display value'); 373 // displayValue = $('.bx-wrapper').find('#videosList').find('li')[i].style.display; 374 // if(displayValue == 'block'){ 375 // console.log('Testing: Video should be ' + i + ' or specifically ' + videoIDs[i]); 376 // } 377 // i++; 378 // }); 379 // }); 380 // checknow = false; 381 // } 382 // } 383 // manualVideoIdentify(); 384 385 386 387 $('.topicpage .video-thumb-img').each(function() {$(this).parent().parent().attr('onclick','inlinePlayer(' + $(this).data('video-id') + ');');}); 388 389 $('.topicpage #videosList > li').each(function() { 390 // if ($('#video-inline').data('video-id') == $(this).find('img').data('video-id')) { 391 // $(this).addClass('active'); 392 // } 393 $(this).on('click', function(){ 394 $(this).siblings().removeClass('active'); 395 $(this).addClass('active'); 396 }); 397 }); 398 399 $('.vjs-big-play-button').on('click', function() {
400 $('.topicpage #videosList > li:first-child').addClass('active'); 401 }); 402 403 //close lightbox 404 $('#playerClose').on('click',function() {lPlayer.pause();$('#playerLightbox').attr('class','playerHide');if(!iOS) {$('.videoPreLoader').remove();}}); 405 406}); 407 408var iOS = ( navigator.userAgent.match(/(iPad|iPhone|iPod)/g) ? true : false ), 409 lPlayer = videojs('video-lightbox'), 410 iPlayer = videojs('video-inline'); 411 412function videoLightboxPlay(videoID) { 413 console.log('Testing: videoLightboxPlay fired for ' + videoID); 414 if (typeof console == "undefined") {window.console = {log: function () {},assert:function() {} };} 415 $('#playerLightbox').attr('class','playerShow'); 416 if(!iOS) {$('<img class="videoPreLoader" src="https://cdn.ttgtmedia.com/microsites/delltakeyourlifeback/images/loader.gif" />').appendTo('#playerLightbox');} 417 lPlayer.catalog.getVideo(videoID, function(error, video) { 418 if (error) {if (typeof console != "undefined") {console.log('video error: ' + error);}} else {lPlayer.catalog.load(video);lPlayer.play();} 419 }); 420} 421function inlinePlayer(videoID) { 422 console.log('Testing: inlinePlayer fired for ' + videoID); 423 if (typeof console == "undefined") {window.console = {log: function () {},assert:function() {} };} 424 iPlayer.catalog.getVideo(videoID, function(error, video) { 425 if (error) { 426 if (typeof console != "undefined") { 427 console.log('video error: ' + error); 428 } 429 } else { 430 iPlayer.catalog.load(video); 431 iPlayer.play(); 432 } 433 }); 434}
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.