Files
Testing/templates/ajaxpages.tpl

34 lines
2.1 KiB
Smarty
Raw Permalink Normal View History

2026-11-17 16:15:01 -05:00
{$adbelow}
{if $smarty.get.record==115}
<script type="text/javascript" src="/jackbox/js/jackbox-packed.min.js"></script>
<script type="text/javascript">
{literal}
jQuery.noConflict();
jQuery(document).ready(function() {
jQuery(".jackbox[data-group]").jackBox("init", {
deepLinking: false, // choose to use the deep-linking feature ("true" will enhance social sharing!) true/false
showInfoByDefault: false, // show item info automatically when content loads, true/false
preloadGraphics: true, // preload the jackbox graphics for a faster jackbox
fullscreenScalesContent: true, // choose to always scale content up in fullscreen mode, true/false
autoPlayVideo: true, // video autoplay default, this can also be set per video in the data-attributes, true/false
flashVideoFirst: false, // choose which technology has first priority for video, HTML5 or Flash, true/false
defaultVideoWidth: 960, // the default video width, can also be set per video in the data-attributes
defaultVideoHeight: 540, // the default video height, can also be set per video in the data-attributes
baseName: "jackbox", // base url applied to built-in widgets/modules
className: ".jackbox", // the default jQuery selector
useThumbs: false, // choose to use thumbnails, true/false
thumbsStartHidden: false, // choose to initially hide the thumbnail strip, true/false
thumbnailWidth: 75, // the default thumb width, can also be set per video in the data-attributes
thumbnailHeight: 50, // the default thumb height, can also be set per video in the data-attributes
useThumbTooltips: true, // choose to use small thumbnail tooltips, true/false
showPageScrollbar: true, // if you don't like the "page jump" when the scrollbar disappears, set this to "true"
useKeyboardControls: true // The left and right keyboard arrows will cycle through the items. up/down will toggle thumbs
});
});
{/literal}
</script>
{/if}