Skip to content

Commit

Permalink
Merge pull request #3 from YoYoGames/Update-html5.skn
Browse files Browse the repository at this point in the history
Update html5.skn
  • Loading branch information
ksuchitra532 authored Oct 16, 2024
2 parents dd1a613 + 829f495 commit 6056add
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions Manual/publish/skins/Charcoal_Grey/html5.skn
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@
<custom_button_image_0>expand_all.svg</custom_button_image_0>
<custom_button_image_1>removesearch_mark.svg</custom_button_image_1>
<custom_button_image_2>print_desktop.png</custom_button_image_2>
<custom_button_image_3>bug-report-final.png</custom_button_image_3>
<custom_button_image_4>go-to-page.png</custom_button_image_4>
<custom_button_selected_image_4>go-to-page.png</custom_button_selected_image_4>
</css>
<html>
<title_font_family>Verdana</title_font_family>
Expand All @@ -135,20 +138,40 @@
<onclick>rh.model.publish(rh.consts(&#39;EVT_EXPAND_COLLAPSE_ALL&#39;));return false;</onclick>
<title>Expand/Collapse All</title>
<id>0</id>
<key>41076</key>
</custom_buttonsitem>
<custom_buttonsitem>
<image>removesearch_mark.svg</image>
<name>RemoveHighlight</name>
<onclick>rh.model.publish(rh.consts(&#39;EVT_REMOVE_HIGHLIGHT&#39;));return false;</onclick>
<title>Remove Highlight</title>
<id>1</id>
<key>41077</key>
</custom_buttonsitem>
<custom_buttonsitem>
<image>print_desktop.png</image>
<name>Print</name>
<onclick>rh.model.publish(rh.consts(&#39;EVT_PRINT_TOPIC&#39;));return false;</onclick>
<title>Print</title>
<id>2</id>
<key>41078</key>
</custom_buttonsitem>
<custom_buttonsitem>
<name>ReportaBug</name>
<id>3</id>
<key>41079</key>
<title>Report a Problem</title>
<href>https://github.com/YoYoGames/GameMaker-Bugs/issues/new?assignees=&amp;labels=docs-bug&amp;projects=&amp;template=docs_bug_report.yml</href>
<image>bug-report-final.png</image>
</custom_buttonsitem>
<custom_buttonsitem>
<name>GoToPage</name>
<id>4</id>
<key>41080</key>
<image>go-to-page.png</image>
<selected_image>go-to-page.png</selected_image>
<title>Go To GitHub File</title>
<onclick>let local = (location.hostname === &#39;localhost&#39; || location.hostname === &#39;127.0.0.1&#39;); let curl = window.location.href; let parts = curl.split(&#39;/&#39;); let version = parts[3]; let lang = parts[4]; if (lang==&#39;br&#39;) lang=&#39;pt-br&#39;; let repo = &#39;GameMaker-Manual&#39;; if (!local &amp;&amp; lang != &#39;en&#39;) repo = repo + &#39;-&#39; + lang; let branch = (!local &amp;&amp; version==&#39;lts&#39;) ? &#39;main-lts&#39; : &#39;develop&#39;; let match = (local ? /https?:\/\/.*:[0-9]+|https?:\/\/localhost\// : /https:\/\/manual\.gamemaker\.io\/[a-zA-Z]+\/[a-zA-Z]+\//).exec(curl); let path = curl.replace(match[0], &#39;&#39;).replace(&#39;index.htm?#t=&#39;, &#39;&#39;).replace(&#39;index.htm#t=&#39;, &#39;&#39;).replace(&#39;#t=&#39;, &#39;&#39;).replace(&#39;%2F&#39;, &#39;/&#39;).split(&#39;%23&#39;)[0]; path = `https://github.com/YoYoGames/${repo}/tree/${branch}/Manual/contents/${path}`; window.open(path, &#39;_blank&#39;).focus();</onclick>
</custom_buttonsitem>
</custom_buttons>
<search_results_highlight_bgcolor>rgba(255, 147, 0, 0.75)</search_results_highlight_bgcolor>
Expand All @@ -157,5 +180,5 @@
<use_twitter type="boolean">false</use_twitter>
</html>
</variables>
<version>2020.8.0</version>
</skin>
<version>2022.2.0</version>
</skin>

0 comments on commit 6056add

Please sign in to comment.