Difference between revisions of "Team:Exeter"
Line 19: | Line 19: | ||
Your browser does not support the video tag. | Your browser does not support the video tag. | ||
</video> | </video> | ||
+ | --> | ||
+ | <!-- | ||
+ | <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:32, 18 September 2015