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
| (function() { | |
| 'use strict'; | |
| /** | |
| * @name config | |
| * @description config block | |
| */ | |
| function config($stateProvider, $httpProvider) { | |
| $stateProvider | |
| .state('root.home', { |
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
| // Released under MIT license: http://www.opensource.org/licenses/mit-license.php | |
| $('[placeholder]').focus(function() { | |
| var input = $(this); | |
| if (input.val() == input.attr('placeholder')) { | |
| input.val(''); | |
| input.removeClass('placeholder'); | |
| } | |
| }).blur(function() { | |
| var input = $(this); |
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
| <?php | |
| $sites = wp_get_sites(); | |
| foreach ( $sites as $i => $site ) { | |
| switch_to_blog( $site[ 'blog_id' ] ); | |
| $sites[ $i ][ 'name' ] = get_bloginfo(); | |
| restore_current_blog(); | |
| } |
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
| <script>document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1"></' + 'script>')</script> |
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 slider = $('.bxslider').bxSlider({ | |
| onSlideAfter: function(slide, oldindex, currentSlide){ | |
| oldSlide = $( '.bxslider > li:nth-child(' + (currentSlide+1) + ')'); | |
| youtubeVideo = oldSlide.find('iframe[src*=youtube]'); | |
| if ( youtubeVideo.length ) { | |
| youtubeVideo.get(0).contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}','*'); | |
| } | |
| } | |
| }); |
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
| source 'https://rubygems.org' | |
| gem 'faye' | |
| gem 'foreman' | |
| gem 'thin' |
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
| <script type="text/javascript"> | |
| var mylist = $('.friendlist-inside'); | |
| var listitems = mylist.children('article').get(); | |
| listitems.sort(function(a, b) { | |
| return $(a).children('label').text().toUpperCase().localeCompare($(b).children('label').text().toUpperCase()); | |
| }); | |
| $.each(listitems, function(index, item) { |
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
| query_posts( array ( 'category_name' => 'centerpiece', 'paged' => $paged ) ); | |
| if (have_posts()) : | |
| while (have_posts()) :the_post() | |
| endforeach; | |
| wp_reset_postdata(); | |
| <?php posts_nav_link(); ? |
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 data = "quantity[]="+qty+"&virtuemart_product_id[]="+pid | |
| //data = encodeURIComponent(data); | |
| jQuery.ajax({ | |
| type: "GET", | |
| dataType: 'json', | |
| url: "index.php?option=com_virtuemart&nosef=1&view=cart&task=addJS", | |
| data: data, | |
| success: function(data) { | |
| alert(data); |
NewerOlder