Altered public view link to be tinier.
Made links global ("/" instead of "./")
This commit is contained in:
parent
b887e1309b
commit
956255bc00
|
@ -0,0 +1,3 @@
|
||||||
|
RewriteEngine On # Turn on the rewriting engine
|
||||||
|
RewriteRule ^view/([0-9]+)/?$ view/index.php?dict=$1 [NC,L] # Handle dictionary ids.
|
||||||
|
RewriteRule ^([0-9]+)/?$ view/index.php?dict=$1 [NC,L] # Handle dictionary ids.
|
|
@ -32,7 +32,7 @@ require_once(SITE_LOCATION . '/php/notificationconditiontree.php');
|
||||||
<body>
|
<body>
|
||||||
<header>
|
<header>
|
||||||
<div id="headerPadder">
|
<div id="headerPadder">
|
||||||
<a href="./" id="siteLogo">Lexiconga Dictionary Builder</a>
|
<a href="/" id="siteLogo">Lexiconga Dictionary Builder</a>
|
||||||
<div style="float:right;margin: 16px 8px;font-size:12px;">
|
<div style="float:right;margin: 16px 8px;font-size:12px;">
|
||||||
<span id="aboutButton" class="clickable" onclick="ShowInfo('aboutText')">About Lexiconga</span>
|
<span id="aboutButton" class="clickable" onclick="ShowInfo('aboutText')">About Lexiconga</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -62,7 +62,7 @@ require_once(SITE_LOCATION . '/php/notificationconditiontree.php');
|
||||||
<label><span>Word</span>
|
<label><span>Word</span>
|
||||||
<input type="text" id="word" />
|
<input type="text" id="word" />
|
||||||
</label>
|
</label>
|
||||||
<label><span>Pronunciation <a class="helperlink" href="./ipa_character_picker/" target="_blank" title="IPA Character Picker backed up from http://r12a.github.io/pickers/ipa/">IPA Characters</a></span>
|
<label><span>Pronunciation <a class="helperlink" href="/ipa_character_picker/" target="_blank" title="IPA Character Picker backed up from http://r12a.github.io/pickers/ipa/">IPA Characters</a></span>
|
||||||
<input type="text" id="pronunciation" />
|
<input type="text" id="pronunciation" />
|
||||||
</label>
|
</label>
|
||||||
<label><span>Part of Speech</span>
|
<label><span>Part of Speech</span>
|
||||||
|
|
2
js/ui.js
2
js/ui.js
|
@ -415,7 +415,7 @@ function ToggleCaseSensitiveOption() {
|
||||||
|
|
||||||
function TogglePublicLink() {
|
function TogglePublicLink() {
|
||||||
if (document.getElementById("dictionaryIsPublic").checked) {
|
if (document.getElementById("dictionaryIsPublic").checked) {
|
||||||
var publicLink = "http://lexicon.ga/view/?dict=" + currentDictionary.externalID;
|
var publicLink = "http://lexicon.ga/" + currentDictionary.externalID;
|
||||||
document.getElementById("publicLink").innerHTML = "<strong>Public Link:</strong><br>" + publicLink;
|
document.getElementById("publicLink").innerHTML = "<strong>Public Link:</strong><br>" + publicLink;
|
||||||
} else {
|
} else {
|
||||||
document.getElementById("publicLink").innerHTML = "";
|
document.getElementById("publicLink").innerHTML = "";
|
||||||
|
|
|
@ -63,19 +63,19 @@ catch (PDOException $ex) {}
|
||||||
<meta property="og:description" content="A Lexiconga dictionary by <?php echo $dictionary_creator; ?>" />
|
<meta property="og:description" content="A Lexiconga dictionary by <?php echo $dictionary_creator; ?>" />
|
||||||
<meta property="og:image" content="http://lexicon.ga/images/logo.svg" />
|
<meta property="og:image" content="http://lexicon.ga/images/logo.svg" />
|
||||||
|
|
||||||
<link href="../css/styles.css" rel="stylesheet" />
|
<link href="/css/styles.css" rel="stylesheet" />
|
||||||
<link href="../css/lexiconga.css" rel="stylesheet" />
|
<link href="/css/lexiconga.css" rel="stylesheet" />
|
||||||
<script>var publicDictionary = <?php echo $the_public_dictionary; ?></script>
|
<script>var publicDictionary = <?php echo $the_public_dictionary; ?></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<header>
|
<header>
|
||||||
<div id="headerPadder">
|
<div id="headerPadder">
|
||||||
<a href="./" id="siteLogo">Lexiconga Dictionary Builder</a>
|
<a href="/" id="siteLogo">Lexiconga Dictionary Builder</a>
|
||||||
<div style="float:right;margin: 16px 8px;font-size:12px;">
|
<div style="float:right;margin: 16px 8px;font-size:12px;">
|
||||||
<span id="aboutButton" class="clickable" onclick="ShowInfo('aboutText')">About Lexiconga</span>
|
<span id="aboutButton" class="clickable" onclick="ShowInfo('aboutText')">About Lexiconga</span>
|
||||||
</div>
|
</div>
|
||||||
<div id="loginoutArea" style="font-size:12px;">
|
<div id="loginoutArea" style="font-size:12px;">
|
||||||
<a id="loginLink" class="clickable" href="../" title="Go home to log in or create an account.">Go Home</a>
|
<a id="loginLink" class="clickable" href="/" title="Go home to log in or create an account.">Go Home</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
@ -137,15 +137,15 @@ catch (PDOException $ex) {}
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
<!-- Markdown Parser -->
|
<!-- Markdown Parser -->
|
||||||
<script src="../js/marked.js"></script>
|
<script src="/js/marked.js"></script>
|
||||||
<!-- JSON Search -->
|
<!-- JSON Search -->
|
||||||
<script src="../js/defiant.js"></script>
|
<script src="/js/defiant.js"></script>
|
||||||
<!-- Diacritics Removal for Exports -->
|
<!-- Diacritics Removal for Exports -->
|
||||||
<script src="../js/removeDiacritics.js"></script>
|
<script src="/js/removeDiacritics.js"></script>
|
||||||
<!-- Main Script -->
|
<!-- Main Script -->
|
||||||
<script src="../js/dictionaryBuilder.js"></script>
|
<script src="/js/dictionaryBuilder.js"></script>
|
||||||
<script src="../js/ui.js"></script>
|
<script src="/js/ui.js"></script>
|
||||||
<script src="../js/publicView.js"></script>
|
<script src="/js/publicView.js"></script>
|
||||||
<?php if ($_GET['adminoverride'] != "noadsortracking") { include_once("../php/google/analytics.php"); } ?>
|
<?php if ($_GET['adminoverride'] != "noadsortracking") { include_once("../php/google/analytics.php"); } ?>
|
||||||
<script>
|
<script>
|
||||||
var aboutText = termsText = privacyText = loginForm = forgotForm = "Loading...";
|
var aboutText = termsText = privacyText = loginForm = forgotForm = "Loading...";
|
||||||
|
@ -153,11 +153,11 @@ catch (PDOException $ex) {}
|
||||||
ShowPublicDictionary();
|
ShowPublicDictionary();
|
||||||
SetPublicPartsOfSpeech();
|
SetPublicPartsOfSpeech();
|
||||||
|
|
||||||
GetTextFile("../README.md", "aboutText", true);
|
GetTextFile("/README.md", "aboutText", true);
|
||||||
GetTextFile("../TERMS.md", "termsText", true);
|
GetTextFile("/TERMS.md", "termsText", true);
|
||||||
GetTextFile("../PRIVACY.md", "privacyText", true);
|
GetTextFile("/PRIVACY.md", "privacyText", true);
|
||||||
GetTextFile("../LOGIN.form", "loginForm", false);
|
GetTextFile("/LOGIN.form", "loginForm", false);
|
||||||
GetTextFile("../FORGOT.form", "forgotForm", false);
|
GetTextFile("/FORGOT.form", "forgotForm", false);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Reference in New Issue