Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions source-common/javascripts/all.js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

$(document).foundation();

<% unless is_xampp? %>
$(document).ready(function() {
<% unless is_xampp? %>
// Load latest forum posts
var discussions = $('#discussions'), limit = <%= settings.forum_post_count %>;
if ( $('#discussions').length !== 0 ) {
Expand All @@ -21,7 +21,7 @@ $(document).ready(function() {
}
});
}
<% end %>
<% end %>

// tweet it form
$('form#tweet').submit(function(event) {
Expand All @@ -42,7 +42,7 @@ $(document).ready(function() {
});
}

if (window.isLinux64) {
if (window.isLinux64()) {
$('a[data-x64-href]').each(function(i) {
$(this).attr('href', $(this).data('x64-href'));
});
Expand Down Expand Up @@ -84,7 +84,7 @@ function strip(html) {
}

// Retina detection
window.isRetina = function() {
function isRetina() {
var mediaQuery = "(-webkit-min-device-pixel-ratio: 1.5),\
(min--moz-device-pixel-ratio: 1.5),\
(-o-min-device-pixel-ratio: 3/2),\
Expand All @@ -94,6 +94,6 @@ window.isRetina = function() {
}

// Linux x64 detection
window.isLinux64 = function() {
function isLinux64() {
return window.navigator.platform.substr(0, 5) == "Linux" && window.navigator.platform.substr(-2,2) == "64";
}
Loading