/* When multiple elements are supposed to be displayed sideways next to each other. WITH LOOPING! Also, there are some arrows */ var sircon = window.sircon || {}; sircon.objects = sircon.objects || {}; sircon.objects.sidewaysViewer = new function(){ var $ = jQuery, self = this; //USE THIS TO MAKE STUFF START WORKING self.initSidewaysViews = function(){ //Make each sideways view work as intended $('.sircon-sideways').not('.sideways-prepared').each(function(){ //Initiate a single sideways view here var $this = $(this); //Add some extra wrappers to allow functionality! $this.wrap('
'); $this.wrapInner('
'); //Add navigational elements $this.after('