Skip to content

Commit

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

* Update index.html

* Update index.html
  • Loading branch information
mi-hol authored Oct 5, 2024
1 parent 1a60e0f commit e37c793
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1362,7 +1362,12 @@ <h1><img src="austflag.gif" alt="Aussie Flag"> <font color="#DC1B30"><font size=

//Enter domain of site to search.
// ToDo: set dynamically to avoid looking at wrong website!
var domainroot="www.engenia.com.au"
//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 domainroot=window.location.hostname;
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 e37c793

Please sign in to comment.