git://git.onelab.eu
/
myslice.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nicer and simpler logout
[myslice.git]
/
trash
/
templates
/
view-tab.html
diff --git
a/trash/templates/view-tab.html
b/trash/templates/view-tab.html
index
94a541a
..
1e48e5c
100644
(file)
--- a/
trash/templates/view-tab.html
+++ b/
trash/templates/view-tab.html
@@
-30,6
+30,12
@@
$(function(){console.log('hey!');$('#tooltipid').tooltip({'selector':'','placeme
a first <a id='tooltipid' href="#" data-toggle="tooltip" data-original-title="what the tooltip displays"> attempt with tooltips </a>
a first <a id='tooltipid' href="#" data-toggle="tooltip" data-original-title="what the tooltip displays"> attempt with tooltips </a>
+Let us now try to attach <button id='mylougout' class='btn btn-danger' data='mydata'>a click function to a button</button>
+<script>
+function foo() {alert ('foo' + $(this).attr('data'));}
+$(function() {$('#mylougout').click(foo);})
+</script>
+
<div>
{{ lorem }} Lorem <span class='bold'>ipsum dolor</span> <code> counter += 1
</code> sit amet, consectetuer
<div>
{{ lorem }} Lorem <span class='bold'>ipsum dolor</span> <code> counter += 1
</code> sit amet, consectetuer