A collection of simple tips to help up your jQuery game.
This file contains 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
// The test code of Swift Reflection API: http://appventure.me/2015/10/24/swift-reflection-api-what-you-can-do/ | |
import UIKit | |
public class Store { | |
let storesToDisk: Bool = true | |
} | |
public class BookmarkStore: Store { | |
let itemCount: Int = 10 | |
} |
This file contains 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).ready(function() { | |
$('button#show').on('click', function() { | |
£('p').show(); | |
}); | |
$('button#hide').on('click', function() { | |
$('p').hide(); | |
}); | |
}); |
This file contains 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
<html> | |
<head> | |
<title>title</title> | |
<script src="//code.jquery.com/jquery-1.11.2.min.js"></script> | |
<script> | |
$(document).ready(function(){ | |
$('#sel div a').click(function(){ | |
console.log( this.rel ); |
This file contains 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
package griffon.plugins.glazedlists; | |
import ca.odell.glazedlists.gui.TableFormat; | |
import javafx.application.Application; | |
import javafx.collections.FXCollections; | |
import javafx.collections.ObservableList; | |
import javafx.scene.Scene; | |
import javafx.scene.control.TableView; | |
import javafx.stage.Stage; |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
html, body { | |
-webkit-font-smoothing: subpixel-antialiased; | |
} | |
#links { | |
display: block; | |
color: #ddd; |
This file contains 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
<Window x:Class="Filtering.MainWindow" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:l="clr-namespace:Filtering" | |
Title="MainWindow" Height="350" Width="525"> | |
<Window.Resources> | |
<l:MainWindowViewModel x:Key="ViewModel"/> | |
</Window.Resources> | |
<Grid DataContext="{StaticResource ViewModel}"> | |
<ListView ItemsSource="{Binding Collection}"/> |
This file contains 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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>addClass demo</title> | |
<style> | |
p { | |
margin: 8px; | |
font-size: 16px; | |
} |
This file contains 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
<!-- Check if jQuery already exists --> | |
<script type="text/javascript"> | |
(function() { | |
if(window.jQuery === undefined) | |
{ | |
document.write('<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"><\/script>'); | |
} | |
else | |
{ | |
jQuery = window.jQuery; |
NewerOlder