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

Version Path
sportdb-1.8.27 lib/sportdb/service/public/football/matchday.html
sportdb-1.8.26 lib/sportdb/service/public/football/matchday.html
sportdb-1.8.25 lib/sportdb/service/public/football/matchday.html
sportdb-1.8.24 lib/sportdb/service/public/football/matchday.html
sportdb-1.8.23 lib/sportdb/service/public/football/matchday.html
sportdb-1.8.22 lib/sportdb/service/public/football/matchday.html
sportdb-1.8.21 lib/sportdb/service/public/football/matchday.html
sportdb-1.8.20 lib/sportdb/service/public/football/matchday.html
sportdb-1.8.19 lib/sportdb/service/public/football/matchday.html
sportdb-1.8.18 lib/sportdb/service/public/football/matchday.html
sportdb-1.8.17 lib/sportdb/service/public/football/matchday.html
sportdb-1.8.16 lib/sportdb/service/public/football/matchday.html
sportdb-1.8.15 lib/sportdb/service/public/football/matchday.html
sportdb-1.8.14 lib/sportdb/service/public/football/matchday.html
sportdb-1.8.13 lib/sportdb/service/public/football/matchday.html
sportdb-1.8.12 lib/sportdb/service/public/football/matchday.html
sportdb-1.8.11 lib/sportdb/service/public/football/matchday.html
sportdb-1.8.10 lib/sportdb/service/public/football/matchday.html
sportdb-1.8.9 lib/sportdb/service/public/football/matchday.html
sportdb-1.8.8 lib/sportdb/service/public/football/matchday.html