Sha256: e4ff4d8ef0f94a61ba1f72bd2ede7d2666800a77ecf52a6e7c5331aa50a762fd
Contents?: true
Size: 1.52 KB
Versions: 34
Compression:
Stored size: 1.52 KB
Contents
<!DOCTYPE html> <html> <head> <meta charset='UTF-8'> <title>Matchday Example / football.db JSON(P) API</title> <script src='js/libs/jquery-2.0.2.min.js'></script> <script src='js/libs/underscore-1.4.4.min.js'></script> <script src='js/libs/require-2.1.6.js'></script> <style> .football-widget a { color: black; text-decoration: none; } .football-widget { border: 1px solid green; padding: 4px; margin: 10px; } .football-widget .rounds { margin-bottom: 10px; } </style> <script> require.config( { baseUrl: 'js' }); require( ['football/widget'], function(Widget) { $(document).ready( function() { Widget.create( '#euro', { event: 'euro.2012' } ); Widget.create( '#at', { event: 'at.2013_14' } ); // option 2) show today's round or the last or the next Widget.create( '#de', { event: 'de.2013_14', showRounds: false } ); // option 3) widget with no event => show scheduled rounds for today (for all events) Widget.create( '#rounds' ); }); }); // fn require </script> </head> <body> <h1>Matchday Example / football.db JSON(P) API</h1> <div id='euro'></div> <!-- try another widget --> <div id='at'></div> <!-- try another widget --> <div id='de'></div> <!-- try another widget --> <p>Any rounds scheduled today?</p> <div id='rounds'></div> </body> </html>
Version data entries
34 entries across 34 versions & 1 rubygems