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>
|
||||
<header>
|
||||
<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;">
|
||||
<span id="aboutButton" class="clickable" onclick="ShowInfo('aboutText')">About Lexiconga</span>
|
||||
</div>
|
||||
|
@ -62,7 +62,7 @@ require_once(SITE_LOCATION . '/php/notificationconditiontree.php');
|
|||
<label><span>Word</span>
|
||||
<input type="text" id="word" />
|
||||
</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" />
|
||||
</label>
|
||||
<label><span>Part of Speech</span>
|
||||
|
|
2
js/ui.js
2
js/ui.js
|
@ -415,7 +415,7 @@ function ToggleCaseSensitiveOption() {
|
|||
|
||||
function TogglePublicLink() {
|
||||
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;
|
||||
} else {
|
||||
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:image" content="http://lexicon.ga/images/logo.svg" />
|
||||
|
||||
<link href="../css/styles.css" rel="stylesheet" />
|
||||
<link href="../css/lexiconga.css" rel="stylesheet" />
|
||||
<link href="/css/styles.css" rel="stylesheet" />
|
||||
<link href="/css/lexiconga.css" rel="stylesheet" />
|
||||
<script>var publicDictionary = <?php echo $the_public_dictionary; ?></script>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<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;">
|
||||
<span id="aboutButton" class="clickable" onclick="ShowInfo('aboutText')">About Lexiconga</span>
|
||||
</div>
|
||||
<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>
|
||||
</header>
|
||||
|
@ -137,15 +137,15 @@ catch (PDOException $ex) {}
|
|||
</footer>
|
||||
|
||||
<!-- Markdown Parser -->
|
||||
<script src="../js/marked.js"></script>
|
||||
<script src="/js/marked.js"></script>
|
||||
<!-- JSON Search -->
|
||||
<script src="../js/defiant.js"></script>
|
||||
<script src="/js/defiant.js"></script>
|
||||
<!-- Diacritics Removal for Exports -->
|
||||
<script src="../js/removeDiacritics.js"></script>
|
||||
<script src="/js/removeDiacritics.js"></script>
|
||||
<!-- Main Script -->
|
||||
<script src="../js/dictionaryBuilder.js"></script>
|
||||
<script src="../js/ui.js"></script>
|
||||
<script src="../js/publicView.js"></script>
|
||||
<script src="/js/dictionaryBuilder.js"></script>
|
||||
<script src="/js/ui.js"></script>
|
||||
<script src="/js/publicView.js"></script>
|
||||
<?php if ($_GET['adminoverride'] != "noadsortracking") { include_once("../php/google/analytics.php"); } ?>
|
||||
<script>
|
||||
var aboutText = termsText = privacyText = loginForm = forgotForm = "Loading...";
|
||||
|
@ -153,11 +153,11 @@ catch (PDOException $ex) {}
|
|||
ShowPublicDictionary();
|
||||
SetPublicPartsOfSpeech();
|
||||
|
||||
GetTextFile("../README.md", "aboutText", true);
|
||||
GetTextFile("../TERMS.md", "termsText", true);
|
||||
GetTextFile("../PRIVACY.md", "privacyText", true);
|
||||
GetTextFile("../LOGIN.form", "loginForm", false);
|
||||
GetTextFile("../FORGOT.form", "forgotForm", false);
|
||||
GetTextFile("/README.md", "aboutText", true);
|
||||
GetTextFile("/TERMS.md", "termsText", true);
|
||||
GetTextFile("/PRIVACY.md", "privacyText", true);
|
||||
GetTextFile("/LOGIN.form", "loginForm", false);
|
||||
GetTextFile("/FORGOT.form", "forgotForm", false);
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
|
Loading…
Reference in New Issue