This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Smartphones (portrait and landscape) ----------- */ | |
| @media only screen | |
| and (min-device-width : 320px) | |
| and (max-device-width : 480px) { | |
| /* STYLES GO HERE */ | |
| } | |
| /* Smartphones (landscape) ----------- */ | |
| @media only screen |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Verifying that +oguilherme is my blockchain ID. https://onename.com/oguilherme |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| document.getElementById("js-input-file").addEventListener("change", function(){ | |
| $('#js-input-fake').html(this.files[0].name); | |
| }, false); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var toSlug = function(str) { | |
| str = str.replace(/^\s+|\s+$/g, ''); // trim | |
| str = str.toLowerCase(); | |
| // remove accents, swap ñ for n, etc | |
| var from = "ãàáäâẽèéëêìíïîõòóöôùúüûñç·/_,:;"; | |
| var to = "aaaaaeeeeeiiiiooooouuuunc------"; | |
| for (var i=0, l=from.length ; i<l ; i++) { | |
| str = str.replace(new RegExp(from.charAt(i), 'g'), to.charAt(i)); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $('.js-chat-search').on('keyup', function(){ | |
| var s = $(this).val(); | |
| if(s != ""){ | |
| $('.js-chat-item').hide(); | |
| for (var j = 0; j < userList.length; j++) { | |
| if (userList[j][0].toUpperCase().match(s.toUpperCase())){ | |
| $('.js-chat-item-'+userList[j][1]).show(); | |
| } | |
| } | |
| }else{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // POST | |
| $.post('/url', parameters, function(data) { | |
| console.log(data); | |
| }); | |
| // GET | |
| $.get('/url', parameters, function(data) { | |
| console.log(data); | |
| }); | |
| // JSON | |
| $.getJSON('/url', parameters, function(data) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| element:before { | |
| font-family: FontAwesome; | |
| content: "\f095"; /* code of the icon */ | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var buttons; | |
| buttons = document.getElementsByClassName('_42ft'); | |
| for (var i = 0; i < buttons.length; i++) { | |
| if(buttons[i].getAttribute('ajaxify') != null){ | |
| if(buttons[i].getAttribute('ajaxify').indexOf('invite') != -1){ | |
| buttons[i].click(); | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if (!Modernizr.svg) { | |
| $('.js-svg').each(function(){ | |
| $(this).attr('src', $(this).attr('src').replace('.svg', '.png')); | |
| }); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <IfModule mod_rewrite.c> | |
| Header add Access-Control-Allow-Origin: "domain.tld" | |
| Header add Access-Control-Allow-Methods: "GET,POST,OPTIONS,DELETE,PUT" | |
| Header add Access-Control-Allow-Headers: "X-Requested-With, Content-Type" | |
| RewriteEngine on | |
| RewriteBase / | |
| </IfModule> |
OlderNewer