Subversion Repositories SmartDukaan

Rev

Rev 8749 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8749 Rev 12330
Line 89... Line 89...
89
#end
89
#end
90
#end
90
#end
91
 
91
 
92
played = {};
92
played = {};
93
function onYouTubePlayerReady(playerId) {
93
function onYouTubePlayerReady(playerId) {
94
		ytplayer = document.getElementById(playerId);
94
	ytplayer = document.getElementById(playerId);
95
		ytplayer.addEventListener("onStateChange", "onPlayerStateChange");
95
	ytplayer.addEventListener("onStateChange", "onPlayerStateChange");
96
		ytplayer.cueVideoById(playerId.split("recommended")[1]);
96
	ytplayer.cueVideoById(playerId.split("recommended")[1]);
97
	} 
-
 
98
}
97
}
99
 
98
 
100
function onPlayerStateChange(newState) {
99
function onPlayerStateChange(newState) {
101
  if(newState==0){
100
  if(newState==0){
102
    ytplayer = document.getElementById("ytPlayer");
101
    ytplayer = document.getElementById("ytPlayer");
Line 355... Line 354...
355
#foreach( $imageLabel in $imageRefs )
354
#foreach( $imageLabel in $imageRefs )
356
#set($localcount = $velocityCount - 1)
355
#set($localcount = $velocityCount - 1)
357
#if($localcount != 0)
356
#if($localcount != 0)
358
             <span style="color: rgb(102, 102, 102);">&bull;</span>
357
             <span style="color: rgb(102, 102, 102);">&bull;</span>
359
#end
358
#end
360
             <li onclick="javascript:goToImg('Image$slideno','$localcount',img_$slideno,title_$slideno,'vtab-$slideDefinitionID')">$imageLabel</li>
359
             <li onclick="javascript:goToImg('Image$slideno','$localcount',img_$slideno,title_$slideno,'vtab-$slideDefinitionID')">$medias.get($imageLabel).getLabel()</li>
361
#end
360
#end
362
            </ul>
361
            </ul>
363
           </div>
362
           </div>
364
          </div>
363
          </div>
365
         </div>
364
         </div>
Line 462... Line 461...
462
	#set($videoWidth = $screenwidth)
461
	#set($videoWidth = $screenwidth)
463
 
462
 
464
	#if($firstVideoInitCode == "")
463
	#if($firstVideoInitCode == "")
465
		#set($firstVideoInitCode = "goToVid('ytPlayer', '" + $youtubeId + "', '" + $localcount + "', video_title, 'vtab-" + $slideDefinitionID + "', 'VIDEO_WITH_SKIN', '" + 311 + "', '" + 481 + "', '" + $screentopcornerx + "', '" + $screentopcornery + "')")
464
		#set($firstVideoInitCode = "goToVid('ytPlayer', '" + $youtubeId + "', '" + $localcount + "', video_title, 'vtab-" + $slideDefinitionID + "', 'VIDEO_WITH_SKIN', '" + 311 + "', '" + 481 + "', '" + $screentopcornerx + "', '" + $screentopcornery + "')")
466
	#end
465
	#end
467
		<li ytid="$youtubeId" onclick="javascript:goToVid('ytPlayer', '$youtubeId', '$localcount', video_title,'vtab-$slideDefinitionID', 'VIDEO_WITH_SKIN', '311', '481', '$screentopcornerx', '$screentopcornery')">$videoLabel</li>
466
		<li ytid="$youtubeId" onclick="javascript:goToVid('ytPlayer', '$youtubeId', '$localcount', video_title,'vtab-$slideDefinitionID', 'VIDEO_WITH_SKIN', '311', '481', '$screentopcornerx', '$screentopcornery')">$medias.get($videoLabel).getLabel()</li>
468
#end
467
#end
469
         </ul>
468
         </ul>
470
        </div>
469
        </div>
471
       </div>
470
       </div>
472
      </div>
471
      </div>