aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/OS
diff options
context:
space:
mode:
authorAShifter <[email protected]>2017-04-28 11:46:23 -0700
committerGitHub <[email protected]>2017-04-28 11:46:23 -0700
commit0ffdb500015baaad3a663965d00de8f44a25a235 (patch)
treeb23be2020077d611971094f112e42d1d0283d392 /TimeHACK.Main/OS
parent92f9ee00b94c0a6af901a1ce4017541246517973 (diff)
parenta2e3f6358a2c7c25d5366bec4f75138ed3413305 (diff)
downloadhistacom2-0ffdb500015baaad3a663965d00de8f44a25a235.tar.gz
histacom2-0ffdb500015baaad3a663965d00de8f44a25a235.tar.bz2
histacom2-0ffdb500015baaad3a663965d00de8f44a25a235.zip
Merge pull request #52 from lempamo/master
Master
Diffstat (limited to 'TimeHACK.Main/OS')
-rw-r--r--TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.cs32
-rw-r--r--TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.resx11
2 files changed, 33 insertions, 10 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.cs b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.cs
index 2313ded..2b587d2 100644
--- a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.cs
+++ b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.cs
@@ -14,11 +14,15 @@ namespace TimeHACK.OS.Win95.Win95Apps
public int historylocation = 0;
public HtmlDocument currentsite;
+ private Timer loadplz = new Timer();
public WinClassicIE4()
{
InitializeComponent();
+ loadplz.Tick += new EventHandler(loadplz_Tick);
+ loadplz.Interval = 10;
}
+
private void WinClassicIE4_Load(object sender, EventArgs e)
{
browsinghistory.Capacity = 99;
@@ -188,15 +192,27 @@ namespace TimeHACK.OS.Win95.Win95Apps
private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
- switch (addressbar.Text)
+ loadplz.Start();
+ }
+
+ private void loadplz_Tick(object sender, EventArgs e)
+ {
+ try
{
- case "www.microsoft.com/internetexplorer4/welcome":
- webBrowser1.Document.GetElementById("padams").Click += new HtmlElementEventHandler(padams_LinkClicked);
- break;
- case "www.12padams.com":
- webBrowser1.Document.GetElementById("wc_b").Click += new HtmlElementEventHandler(WCDownloadButton_Click);
- webBrowser1.Document.GetElementById("distort").Style += "visibility:hidden;";
- break;
+ switch (currentsite.Title)
+ {
+ case "IE4START":
+ webBrowser1.Document.GetElementById("padams").Click += new HtmlElementEventHandler(padams_LinkClicked);
+ break;
+ case "12PADAMS":
+ webBrowser1.Document.GetElementById("wc_b").Click += new HtmlElementEventHandler(WCDownloadButton_Click);
+ webBrowser1.Document.GetElementById("distort").Style += "visibility:hidden;";
+ break;
+ }
+ loadplz.Stop();
+ } catch
+ {
+
}
}
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.resx b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.resx
index 6848c3f..dd84e1b 100644
--- a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.resx
+++ b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.resx
@@ -202,6 +202,7 @@ So Please enjoy Using this amzing software and show the world what your made of.
<data name="ie4start_HTML" xml:space="preserve">
<value>&lt;html&gt;
&lt;head&gt;
+ &lt;title&gt;IE4START&lt;/title&gt;
&lt;style&gt;
body {
font-family: "Microsoft Sans Serif";
@@ -223,6 +224,11 @@ So Please enjoy Using this amzing software and show the world what your made of.
p.end {
font-size: 9.75pt;
}
+ a {
+ color: blue;
+ text-decoration: underline;
+ cursor: hand;
+ }
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
@@ -233,8 +239,8 @@ Just type an address in the location bar above and then press go.&lt;br&gt;
Instantly you will be taken to the webpage of your choosing.&lt;br&gt;
Where do you want to go today?&lt;/p&gt;
&lt;h2&gt;Here are some sites you may want to visit.&lt;/h2&gt;
- &lt;a id="google" href="google"&gt;www.google.com&lt;/a&gt;&lt;br&gt;
- &lt;a id="padams" href="12padams"&gt;www.12padams.com&lt;/a&gt;
+ &lt;a id="google"&gt;www.google.com&lt;/a&gt;&lt;br&gt;
+ &lt;a id="padams"&gt;www.12padams.com&lt;/a&gt;
&lt;p class="end"&gt;Where do you want to go today?&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;</value>
@@ -245,6 +251,7 @@ Where do you want to go today?&lt;/p&gt;
<data name="padams_HTML" xml:space="preserve">
<value>&lt;html&gt;
&lt;head&gt;
+ &lt;title&gt;12PADAMS&lt;/title&gt;
&lt;style&gt;
body {
font-family: "Microsoft Sans Serif";