Browse Source

remove inline scripts

master
Miguel Freitas 10 years ago
parent
commit
de78dfd8a6
  1. 8
      following.html
  2. 4
      home.html
  3. 9
      index.html
  4. 17
      js/interface_common.js
  5. 8
      js/tmobile.js
  6. 8
      login.html
  7. 8
      network.html
  8. 8
      profile-edit.html
  9. 9
      tmobile.html

8
following.html

@ -27,14 +27,6 @@ @@ -27,14 +27,6 @@
<script src="js/interface_common.js"></script>
<script src="js/jquery.textcomplete.min.js"></script>
<script>
$(document).ready(function()
{
initInterfaceFollowing();
changeStyle();
});
</script>
<link rel="icon" type="image/png" href="img/twister_mini.png" />
</head>
<body>

4
home.html

@ -29,10 +29,6 @@ @@ -29,10 +29,6 @@
<script src="js/interface_home.js"></script>
<script src="js/jquery.textcomplete.min.js"></script>
<script>
changeStyle();
</script>
<link rel="icon" type="image/png" href="img/twister_mini.png" />
</head>
<body>

9
index.html

@ -11,15 +11,6 @@ @@ -11,15 +11,6 @@
<link rel="stylesheet" href="css/jquery.mobile-1.3.2.min.css" />
<script src="js/jquery-1.9.1.min.js"></script>
<script src="js/jquery.mobile.router.min.js"></script>
<script>
$(document).bind('mobileinit', function () {
$.mobile.allowCrossDomainPages = true;
$.mobile.zoom.enabled = false;
$.mobile.buttonMarkup.hoverDelay = 0; //defaults 200
$.mobile.defaultDialogTransition = 'none';
$.mobile.defaultPageTransition = 'none';
});
</script>
<script src="js/jquery.mobile-1.3.2.min.js"></script>
<link rel="icon" type="image/png" href="img/twister_mini.png" />

17
js/interface_common.js

@ -1449,3 +1449,20 @@ function setTextcompleteDropdownListPos(position) { @@ -1449,3 +1449,20 @@ function setTextcompleteDropdownListPos(position) {
return this;
}
$(document).ready(function()
{
var path = window.location.pathname;
var page = path.split("/").pop();
if (page.indexOf("following.html") === 0) {
initInterfaceFollowing();
} else if (page.indexOf("login.html") === 0) {
initInterfaceLogin();
} else if (page.indexOf("network.html") === 0) {
initInterfaceNetwork();
} else if (page.indexOf("profile-edit.html") === 0) {
initProfileEdit();
}
changeStyle();
});

8
js/tmobile.js

@ -570,3 +570,11 @@ function tmobileTick() { @@ -570,3 +570,11 @@ function tmobileTick() {
}
}
$(document).bind('mobileinit', function () {
$.mobile.allowCrossDomainPages = true;
$.mobile.zoom.enabled = false;
$.mobile.buttonMarkup.hoverDelay = 0; //defaults 200
$.mobile.defaultDialogTransition = 'none';
$.mobile.defaultPageTransition = 'none';
});

8
login.html

@ -21,14 +21,6 @@ @@ -21,14 +21,6 @@
<script src="js/polyglot.min.js"></script>
<script src="js/interface_localization.js"></script>
<script>
$(document).ready(function()
{
initInterfaceLogin();
});
changeStyle();
</script>
<link rel="icon" type="image/png" href="img/twister_mini.png" />
</head>
<body>

8
network.html

@ -23,14 +23,6 @@ @@ -23,14 +23,6 @@
<script src="js/twister_network.js"></script>
<script src="js/interface_common.js"></script>
<script>
$(document).ready(function()
{
initInterfaceNetwork();
});
changeStyle();
</script>
<link rel="icon" type="image/png" href="img/twister_mini.png" />
</head>

8
profile-edit.html

@ -23,14 +23,6 @@ @@ -23,14 +23,6 @@
<script src="js/interface_common.js"></script>
<script src="js/interface_profile-edit.js"></script>
<script>
$(document).ready(function()
{
initProfileEdit();
});
changeStyle()
</script>
<link rel="icon" type="image/png" href="img/twister_mini.png" />
</head>

9
tmobile.html

@ -12,15 +12,6 @@ @@ -12,15 +12,6 @@
<link rel="stylesheet" href="css/jquery.mobile-1.3.2.min.css" />
<script src="js/jquery-1.9.1.min.js"></script>
<script src="js/jquery.mobile.router.min.js"></script>
<script>
$(document).bind('mobileinit', function () {
$.mobile.allowCrossDomainPages = true;
$.mobile.zoom.enabled = false;
$.mobile.buttonMarkup.hoverDelay = 0; //defaults 200
$.mobile.defaultDialogTransition = 'none';
$.mobile.defaultPageTransition = 'none';
});
</script>
<script src="js/jquery.mobile-1.3.2.min.js"></script>
<script src="js/jQueryPlugins.js"></script>

Loading…
Cancel
Save