Browse Source

mise en place des popovers !

master
heuzef 9 years ago
parent
commit
e1a281c3e7
3 changed files with 8 additions and 13 deletions
  1. +0
    -7
      js/bootswatch.js
  2. +4
    -5
      play/gamers.php
  3. +4
    -1
      play/index.php

+ 0
- 7
js/bootswatch.js View File

@@ -10,13 +10,6 @@
$('.bs-component [data-toggle="popover"]').popover();
$('.bs-component [data-toggle="tooltip"]').tooltip();

$(".bs-component").hover(function(){
$(this).append($button);
$button.show();
}, function(){
$button.hide();
});

function cleanSource(html) {
var lines = html.split(/\n/);



+ 4
- 5
play/gamers.php View File

@@ -170,11 +170,10 @@ foreach($xml->entry as $entry) {
</div>
</div>
<hr />
<button type="button" class="btn btn-lg btn-danger" data-toggle="popover" title="Popover title" data-content="And here's some amazing content. It's very engaging. Right?">Click to toggle popover</button>
<button type="button" class="btn btn-default" data-container="body" data-toggle="popover" data-placement="top" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus." data-original-title="" title="" aria-describedby="popover174825">Top</button>
<div class="bs-component">
<button type="button" class="btn btn-default btn-lg" data-container="body" data-toggle="popover" data-placement="top" data-content="Vivamus
sagittis lacus vel augue laoreet rutrum faucibus." data-original-title="This is sparta !">Top</button>
</div>
</div>
</div>
</div>


+ 4
- 1
play/index.php View File

@@ -76,6 +76,7 @@
</div>
<div class="col-lg-5">
<div class="well sponsor">
...
</div>
</div>
</div>
@@ -254,7 +255,9 @@
</div>
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-danger">Création du Boss</button>
<a onclick="window.open('music.php?sample=hard.mp3','ecomonde','menubar=no, scrollbars=no, top=100, left=50, width=320, height=100');">
<button type="submit" class="btn btn-danger">Création du Boss</button>
</a>
<button type="button" class="btn btn-default" data-dismiss="modal">Fermer</button>
</div>
</form>


Loading…
Cancel
Save