webshim
Version:
modular capability-based polyfill loading libary, which extends jQuery with HTML5 features in legacy browsers
39 lines (36 loc) • 917 B
HTML
<html>
<head>
<meta charset="utf-8" />
<title>Webshims Lib Test Suite</title>
<script src="require.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.js"></script>
<script src="../../src/extras/modernizr-custom.js"></script>
<script>
window.asyncWebshims = {
cfg: {
testData: 'test6',
waitReady: false,
forms: {
customMessages: true
}
},
polyfill: "forms forms-ext geolocation"
};
</script>
<script src="../../src/polyfiller.js"></script>
<script>
(function(){
var webshimsReady = false;
webshimsReady = !!($.webshims);
webshims.ready('forms-ext geolocation', function(){
setTimeout(function(){
(window.opener || window.parent).loadingTest($.webshims.cfg.testData, $.webshims.cfg.extendNative);
}, 1);
});
})();
</script>
</head>
<body>
</body>
</html>