Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Dec 14, 2023. It is now read-only.
/ICEcoderPublic archive

Commitfe3683a

Browse files
committed
simplifying $isMac attribution, it doesn't need a ternary operator
1 parent972ae19 commitfe3683a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎index.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
}
2222
}
2323

24-
$isMac =strpos($_SERVER['HTTP_USER_AGENT'],"Macintosh")>-1 ?true :false;
24+
$isMac =strpos($_SERVER['HTTP_USER_AGENT'],"Macintosh") > -1;
2525
?>
2626
<!DOCTYPE html>
2727
<html onMouseDown="top.ICEcoder.mouseDown=true; top.ICEcoder.resetAutoLogoutTimer();" onMouseUp="top.ICEcoder.mouseDown=false; top.ICEcoder.resetAutoLogoutTimer(); top.ICEcoder.mouseDownInCM=false; if (!top.ICEcoder.overCloseLink) {top.ICEcoder.tabDragEnd()}" onMouseMove="if(top.ICEcoder) {top.ICEcoder.getMouseXY(event,'top'); top.ICEcoder.resetAutoLogoutTimer(); top.ICEcoder.canResizeFilesW()}" onMouseWheel="top.ICEcoder.resetAutoLogoutTimer(); if (top.ICEcoder.getcMInstance() && !top.ICEcoder.getcMInstance().hasFocus() && !top.ICEcoder.getcMdiffInstance().hasFocus()) {event.wheelDelta > 0 ? top.ICEcoder.nextTab() : top.ICEcoder.previousTab();}">

‎lib/help.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
<h1 id="title"><?phpecho$t['shortcuts'];?></h1>
1919

20-
<?php$isMac =strpos($_SERVER['HTTP_USER_AGENT'],"Macintosh")>-1 ?true :false;?>
20+
<?php$isMac =strpos($_SERVER['HTTP_USER_AGENT'],"Macintosh") > -1;?>
2121
<div style="display: inline-block; width: 385px; margin-right: 20px">
2222
<h2><?phpecho$t['Within document'];?></h2>
2323
<!-- This can only be CTRL+space as Cmd+space is a reserved apple shortcut -->
@@ -78,4 +78,4 @@
7878

7979
</body>
8080

81-
</html>
81+
</html>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp