diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-25 13:13:57 +0100 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-25 13:13:57 +0100 |
| commit | d25ff2bddd44b9dac1ceb248424109d1782dd211 (patch) | |
| tree | 34fcfd824a1a72e7b4d431b688adcea532b62180 /minionlivesmatter/templates/assets/js/hipster-cards.js | |
| parent | a2cbdd1b88ac723e5e441c0a3c22636f0a8c4dfd (diff) | |
| download | meta-d25ff2bddd44b9dac1ceb248424109d1782dd211.tar.gz meta-d25ff2bddd44b9dac1ceb248424109d1782dd211.zip | |
add minionlivesmatter as submodule
Diffstat (limited to 'minionlivesmatter/templates/assets/js/hipster-cards.js')
| -rw-r--r-- | minionlivesmatter/templates/assets/js/hipster-cards.js | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/minionlivesmatter/templates/assets/js/hipster-cards.js b/minionlivesmatter/templates/assets/js/hipster-cards.js deleted file mode 100644 index f74de6b..0000000 --- a/minionlivesmatter/templates/assets/js/hipster-cards.js +++ /dev/null @@ -1,49 +0,0 @@ -$(document).ready(function(){ - window_width = $(window).width(); - - // Make the images from the card fill the hole space - hipster_cards.fitBackgroundForCards(); - -}); - -hipster_cards = { - misc:{ - navbar_menu_visible: 0 - }, - - fitBackgroundForCards: function(){ - $('[data-background="image"]').each(function(){ - $this = $(this); - - background_src = $this.data("src"); - - if(background_src != "undefined"){ - new_css = { - "background-image": "url('" + background_src + "')", - "background-position": "center center", - "background-size": "cover" - }; - - $this.css(new_css); - } - }); - - $('.card .header img').each(function(){ - $card = $(this).parent().parent(); - $header = $(this).parent(); - - background_src = $(this).attr("src"); - - if(background_src != "undefined"){ - new_css = { - "background-image": "url('" + background_src + "')", - "background-position": "center center", - "background-size": "cover" - }; - - $header.css(new_css); - } - }); - - }, -}
\ No newline at end of file |
