Skip to content

Commit

Permalink
Remove require.js dependencie
Browse files Browse the repository at this point in the history
  • Loading branch information
twlikol committed Nov 7, 2017
1 parent 1a88e02 commit bd64bba
Show file tree
Hide file tree
Showing 9 changed files with 416 additions and 2,723 deletions.
55 changes: 24 additions & 31 deletions Default.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,43 +4,36 @@
<meta charset="utf-8" />
<title>GridViewScroll</title>
<link href="css/web.css" rel="stylesheet" />
<script type="text/javascript" src="js/require-2.3.5.js"></script>
<script type="text/javascript" src="js/gridviewscroll.js"></script>
<script type="text/javascript">
var gridViewScroll = null;
require.config({
baseUrl: 'js'
});
require(['domReady'], function (domReady) {
domReady(function () {
require(['gridviewscroll'], function (Controls) {
var options = new Controls.GridViewScrollOptions();
options.elementID = "gvMain";
options.width = 450;
options.height = 300;
options.freezeColumn = true;
options.freezeFooter = true;
options.freezeColumnCssClass = "GridViewScrollItemFreeze";
options.freezeFooterCssClass = "GridViewScrollFooterFreeze";
options.freezeColumnCount = 2;
window.onload = function () {
var options = new GridViewScrollOptions();
options.elementID = "gvMain";
options.width = 450;
options.height = 300;
options.freezeColumn = true;
options.freezeFooter = true;
options.freezeColumnCssClass = "GridViewScrollItemFreeze";
options.freezeFooterCssClass = "GridViewScrollFooterFreeze";
options.freezeColumnCount = 2;

gridViewScroll = new Controls.GridViewScroll(options);
gridViewScroll.enhance();
gridViewScroll = new GridViewScroll(options);
gridViewScroll.enhance();

options.elementID = "gvMain2";
var gridViewScroll2 = new Controls.GridViewScroll(options);
gridViewScroll2.enhance();
options.elementID = "gvMain2";
var gridViewScroll2 = new GridViewScroll(options);
gridViewScroll2.enhance();

options.elementID = "gvMain3";
options.width = 600;
var gridViewScroll3 = new Controls.GridViewScroll(options);
gridViewScroll3.enhance();
options.elementID = "gvMain3";
options.width = 600;
var gridViewScroll3 = new GridViewScroll(options);
gridViewScroll3.enhance();

options.elementID = "gvMain4";
var gridViewScroll4 = new Controls.GridViewScroll(options);
gridViewScroll4.enhance();
});
});
});
options.elementID = "gvMain4";
var gridViewScroll4 = new GridViewScroll(options);
gridViewScroll4.enhance();
}
function enhance() {
gridViewScroll.enhance();
}
Expand Down
129 changes: 0 additions & 129 deletions js/domReady.js

This file was deleted.

Loading

0 comments on commit bd64bba

Please sign in to comment.