Difference between revisions of "Team:Exeter"

Line 26: Line 26:
  
 
<span class="button small pop2 x-content" data-bpopup='<iframe width="640" height="360" src="http://www.youtube.com/embed/pPb2lIap6Es?rel=0" frameborder="0" allowfullscreen></iframe>'>Watch Our Video</span>
 
<span class="button small pop2 x-content" data-bpopup='<iframe width="640" height="360" src="http://www.youtube.com/embed/pPb2lIap6Es?rel=0" frameborder="0" allowfullscreen></iframe>'>Watch Our Video</span>
                <pre>
 
        <span class="code-function">var</span> self = $(<span class="code-function">this</span>)<span class="code-comment"> //button</span>
 
        , content = $(<span class="code-string">'.content'</span>);
 
       
 
        $(<span class="code-string">'element_to_pop_up'</span>).bPopup({
 
            onOpen: <span class="code-function">function()</span> {
 
                content.html(self.data(<span class="code-string">'bpopup'</span>) || <span class="code-string">''</span>);
 
            },
 
            onClose: <span class="code-function">function()</span> {
 
                content.empty();
 
            }
 
        });
 
                </pre>
 
  
  

Revision as of 15:38, 18 September 2015

Watch Our Video
  • Contact us:
    exeterigem@gmail.com