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
$.getJSON('Gallery/List', function (data) { | |
var itemList = []; | |
$.each(data, function (key, val) { | |
var item = { | |
'name': data[key].name, | |
'url': 'Gallery/View/' + data[key].id, | |
'icon': '/Content/Images/icon-gallery.ico' | |
}; |
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
<script type="text/javascript" src="/scripts/jquery-1.5.min.js"></script> | |
<script type="text/javascript" src="/scripts/jquery.pinify.js"></script> |
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
$('head').ie9ify({ | |
applicationName: 'User InExperience', | |
tooltip: 'Brandon Satrom on Development, Design and Architecture', | |
tasks: [ { | |
'name': 'Blog', | |
'action': 'http://www.userinexperience.com/blog.aspx', | |
'icon': 'favicon.ico' | |
}, | |
{ | |
'name': 'Twitter', |
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> | |
<link rel="shortcut icon" type="image/ico" href="http://localhost/favicon.ico"> | |
<meta name="application-name" content="mySite"> | |
<meta name="msapplication-tooltip" content="mySite"> | |
<meta name="msapplication-starturl" content="http://mysite/Home"> | |
<meta name="msapplication-navbutton-color" content="Green"> | |
<meta name="msapplication-window" content="width=800;height=600"> | |
<meta name="msapplication-task" | |
content="name=Twitter; |
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
//sample usage, with qUnit and pinify | |
//<script src="js/jquery-1.6.min.js"></script> | |
//<script src="js/jquery.pinify.js"></script> | |
//<script src="js/qunit.js"></script> | |
module('', { | |
teardown: function() { | |
windowMocks.resetWindow(); | |
} | |
}); |
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
$('#doubleTopHatContainer').ie9ify('pinTeaser', { | |
type: 'doubleTopHat', | |
pinText: 'Unlock the hidden powers of this site with a click and a drag.', | |
style: { | |
rightBackgroundImage: 'images/left_image.png', | |
leftBackgroundImage: 'images/right_image.png' | |
} | |
}); |
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
$('#brandedTopHatContainer').ie9ify('pinTeaser', { | |
type: 'brandedTopHat', | |
pinText: 'Unlock the hidden powers of this site with a click and a drag.', | |
secondaryText: 'Drag the icon to your taskbar.', | |
style: { | |
backgroundImage: 'images/branding_bar_custom_bg.png', | |
closeButtonImage: 'images/toolbar-bg.png' | |
} | |
}); |
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
$('#topHatContainer').ie9ify('pinTeaser', { | |
type: 'topHat', | |
pinText: 'Unlock the hidden powers of this site with a click and a drag.', | |
style: { | |
backgroundImage: 'images/toolbar-bg.png', | |
closeButtonImage: 'images/toolbar-bg.png' | |
} | |
}); |
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
$.ie9ify.createThumbbarButtons({ | |
buttons: [{ | |
icon: 'images/play.ico', | |
name: 'Play Slideshow', | |
alternateStyle: { | |
icon: 'images/pause.ico', | |
name: 'Pause Slideshow' | |
}, | |
click: function () { | |
var slideshow = $('#slideshow'); |