Skip to content

Commit

Permalink
Search act web site (#11)
Browse files Browse the repository at this point in the history
* Search actual website the request come from

* Update index.html

* Update index.html

* Update index.html

* Update index.html
  • Loading branch information
mi-hol authored Oct 5, 2024
1 parent 206c5e4 commit 2a2b83a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1364,11 +1364,11 @@ <h1><img src="austflag.gif" alt="Aussie Flag"> <font color="#DC1B30"><font size=
// ToDo: set dynamically to avoid looking at wrong website!
//var domainroot="www.engenia.com.au" or "https://engenia.github.io/Engenia/"
// requires different logic for sub-sites hosted on "github.io"
var gh-subsite = "github.io";
var gh_subsite = "github.io";
var domainroot=window.location.hostname;
if (domainroot.indexOf(gh-subsite) !== -1); // true domainroot contains "github.io"
var domainroot=window.location.href;

if (domainroot.indexOf(gh_subsite) !== -1) { // true domainroot contains "github.io"
var domainroot=window.location.href;
}
function Gsitesearch(curobj){curobj.q.value="site:"+domainroot+" "+curobj.qfront.value}
</script>

Expand Down

0 comments on commit 2a2b83a

Please sign in to comment.