aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/OS
diff options
context:
space:
mode:
authorlempamo <[email protected]>2017-04-27 22:28:18 -0400
committerGitHub <[email protected]>2017-04-27 22:28:18 -0400
commitb8706227933c2bf58081e3c0dfd4767afd8dc4a6 (patch)
treea5c4e500b1e4ec4161100bf6b8a6337402bdd82f /TimeHACK.Main/OS
parentd381013ebcba7c4bffc34d3d5caf196723c8d1a5 (diff)
parent5cc3fdda9a2e219f21803bf5dedd810ec572fec7 (diff)
downloadhistacom2-b8706227933c2bf58081e3c0dfd4767afd8dc4a6.tar.gz
histacom2-b8706227933c2bf58081e3c0dfd4767afd8dc4a6.tar.bz2
histacom2-b8706227933c2bf58081e3c0dfd4767afd8dc4a6.zip
Merge pull request #50 from lempamo/master
IE4 HTML
Diffstat (limited to 'TimeHACK.Main/OS')
-rw-r--r--TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.Designer.cs42
-rw-r--r--TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.cs45
-rw-r--r--TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.resx126
3 files changed, 179 insertions, 34 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.Designer.cs b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.Designer.cs
index 5e716d1..ce6e648 100644
--- a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.Designer.cs
+++ b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.Designer.cs
@@ -28,7 +28,7 @@
/// </summary>
private void InitializeComponent()
{
- System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(WinClassicIE4));
+ this.resources = new System.ComponentModel.ComponentResourceManager(typeof(WinClassicIE4));
this.program = new System.Windows.Forms.Panel();
this.browsingarea = new System.Windows.Forms.Panel();
this.webBrowser1 = new System.Windows.Forms.WebBrowser();
@@ -192,7 +192,7 @@
this.Panel2 = new System.Windows.Forms.Panel();
this.Label8 = new System.Windows.Forms.Label();
this.Button10 = new System.Windows.Forms.Button();
- this.Button9 = new System.Windows.Forms.Button();
+ this.GoogleSearchButton = new System.Windows.Forms.Button();
this.ComboBox1 = new System.Windows.Forms.ComboBox();
this.TextBox2 = new System.Windows.Forms.TextBox();
this.Label7 = new System.Windows.Forms.Label();
@@ -365,6 +365,7 @@
//
this.program.BackColor = System.Drawing.Color.Silver;
this.program.Controls.Add(this.browsingarea);
+ this.program.Controls.Add(this.webBrowser1);
this.program.Controls.Add(this.Panel14);
this.program.Controls.Add(this.Panel1);
this.program.Controls.Add(this.PictureBox1);
@@ -378,7 +379,6 @@
// browsingarea
//
this.browsingarea.BackColor = System.Drawing.Color.White;
- this.browsingarea.Controls.Add(this.webBrowser1);
this.browsingarea.Controls.Add(this.padamsmain);
this.browsingarea.Controls.Add(this.padamsbackgrounds);
this.browsingarea.Controls.Add(this.hotmailmain);
@@ -395,15 +395,16 @@
this.browsingarea.Name = "browsingarea";
this.browsingarea.Size = new System.Drawing.Size(959, 483);
this.browsingarea.TabIndex = 9;
+ this.browsingarea.Visible = false;
//
// webBrowser1
//
- this.webBrowser1.Location = new System.Drawing.Point(578, 206);
- this.webBrowser1.MinimumSize = new System.Drawing.Size(20, 20);
+ this.webBrowser1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.webBrowser1.Location = new System.Drawing.Point(0, 111);
this.webBrowser1.Name = "webBrowser1";
- this.webBrowser1.Size = new System.Drawing.Size(62, 47);
+ this.webBrowser1.Size = new System.Drawing.Size(959, 483);
this.webBrowser1.TabIndex = 11;
- this.webBrowser1.Url = new System.Uri("http://www.google.com", System.UriKind.Absolute);
+ this.webBrowser1.DocumentCompleted += new System.Windows.Forms.WebBrowserDocumentCompletedEventHandler(webBrowser1_DocumentCompleted);
//
// padamsmain
//
@@ -631,7 +632,6 @@
this.WCDownloadButton.TabIndex = 6;
this.WCDownloadButton.Text = "Download";
this.WCDownloadButton.UseVisualStyleBackColor = false;
- this.WCDownloadButton.Click += new System.EventHandler(this.WCDownloadButton_Click);
//
// Label43
//
@@ -1141,7 +1141,6 @@
this.LinkLabel16.TabStop = true;
this.LinkLabel16.Text = "www.12padams.com";
this.LinkLabel16.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- this.LinkLabel16.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LinkLabel16_LinkClicked);
//
// LinkLabel15
//
@@ -2102,7 +2101,7 @@
this.Panel2.BackColor = System.Drawing.Color.WhiteSmoke;
this.Panel2.Controls.Add(this.Label8);
this.Panel2.Controls.Add(this.Button10);
- this.Panel2.Controls.Add(this.Button9);
+ this.Panel2.Controls.Add(this.GoogleSearchButton);
this.Panel2.Controls.Add(this.ComboBox1);
this.Panel2.Controls.Add(this.TextBox2);
this.Panel2.Controls.Add(this.Label7);
@@ -2131,16 +2130,16 @@
this.Button10.Text = "I\'m Feeling Lucky";
this.Button10.UseVisualStyleBackColor = false;
//
- // Button9
+ // GoogleSearchButton
//
- this.Button9.BackColor = System.Drawing.Color.Silver;
- this.Button9.Location = new System.Drawing.Point(153, 65);
- this.Button9.Name = "Button9";
- this.Button9.Size = new System.Drawing.Size(104, 23);
- this.Button9.TabIndex = 3;
- this.Button9.Text = "Google Search";
- this.Button9.UseVisualStyleBackColor = false;
- this.Button9.Click += new System.EventHandler(this.Button9_Click);
+ this.GoogleSearchButton.BackColor = System.Drawing.Color.Silver;
+ this.GoogleSearchButton.Location = new System.Drawing.Point(153, 65);
+ this.GoogleSearchButton.Name = "GoogleSearchButton";
+ this.GoogleSearchButton.Size = new System.Drawing.Size(104, 23);
+ this.GoogleSearchButton.TabIndex = 3;
+ this.GoogleSearchButton.Text = "Google Search";
+ this.GoogleSearchButton.UseVisualStyleBackColor = false;
+ this.GoogleSearchButton.Click += new System.EventHandler(this.Button9_Click);
//
// ComboBox1
//
@@ -3441,7 +3440,7 @@
internal System.Windows.Forms.Panel Panel2;
internal System.Windows.Forms.Label Label8;
internal System.Windows.Forms.Button Button10;
- internal System.Windows.Forms.Button Button9;
+ internal System.Windows.Forms.Button GoogleSearchButton;
internal System.Windows.Forms.ComboBox ComboBox1;
internal System.Windows.Forms.TextBox TextBox2;
internal System.Windows.Forms.Label Label7;
@@ -3559,6 +3558,7 @@
internal System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem93;
internal System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem94;
internal System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem95;
- private System.Windows.Forms.WebBrowser webBrowser1;
+ internal System.Windows.Forms.WebBrowser webBrowser1;
+ internal System.ComponentModel.ComponentResourceManager resources;
}
} \ No newline at end of file
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.cs b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.cs
index 751283e..2313ded 100644
--- a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.cs
+++ b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.cs
@@ -13,6 +13,8 @@ namespace TimeHACK.OS.Win95.Win95Apps
public List<string> browsinghistory = new List<string>();
public int historylocation = 0;
+ public HtmlDocument currentsite;
+
public WinClassicIE4()
{
InitializeComponent();
@@ -24,8 +26,8 @@ namespace TimeHACK.OS.Win95.Win95Apps
hidePrograms();
browsinghistory.Add("www.microsoft.com/internetexplorer4/welcome");
for (int i = 0; i < 99; i++) browsinghistory.Add(null);
- welcomeinternetscreen.Show();
- welcomeinternetscreen.Dock = DockStyle.Fill;
+ webBrowser1.DocumentText = resources.GetString("ie4start_HTML");
+ webBrowser1.Show();
foreach (ToolStripMenuItem item in MenuStrip3.Items) item.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((0)));
foreach (Control ctrl in Panel1.Controls) ctrl.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((0)));
}
@@ -46,7 +48,6 @@ namespace TimeHACK.OS.Win95.Win95Apps
email2.Hide();
email3.Hide();
hotmailpadams.Hide();
- webBrowser1.Hide();
}
private void LinkLabel15_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
@@ -54,7 +55,7 @@ namespace TimeHACK.OS.Win95.Win95Apps
goToSite("www.google.com", false);
}
- private void LinkLabel16_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
+ private void padams_LinkClicked(object sender, HtmlElementEventArgs e)
{
goToSite("www.12padams.com", false);
}
@@ -83,7 +84,7 @@ namespace TimeHACK.OS.Win95.Win95Apps
private void Button9_Click(object sender, EventArgs e)
{
-
+ goToSite("www.???.com", false);
}
private void ToolStripMenuItem21_Click(object sender, EventArgs e)
@@ -112,13 +113,21 @@ namespace TimeHACK.OS.Win95.Win95Apps
break;
case "www.12padams.com":
hidePrograms();
- padamsmain.Dock = DockStyle.Fill;
- padamsmain.Show();
+ webBrowser1.DocumentText = resources.GetString("padams_HTML");
break;
case "www.microsoft.com/internetexplorer4/welcome":
hidePrograms();
- welcomeinternetscreen.Dock = DockStyle.Fill;
- welcomeinternetscreen.Show();
+ webBrowser1.DocumentText = resources.GetString("ie4start_HTML");
+ break;
+ case "www.???.com":
+ hidePrograms();
+ secretwebsite.Dock = DockStyle.Fill;
+ secretwebsite.Show();
+ break;
+ case "www.12padams.com/???":
+ hidePrograms();
+ padamshidden.Dock = DockStyle.Fill;
+ padamshidden.Show();
break;
default:
return;
@@ -142,7 +151,7 @@ namespace TimeHACK.OS.Win95.Win95Apps
}
addressbar.Text = url;
-
+ currentsite = webBrowser1.Document;
}
private void BackButton_Click(object sender, EventArgs e)
@@ -164,7 +173,7 @@ namespace TimeHACK.OS.Win95.Win95Apps
goToSite("www.microsoft.com/internetexplorer4/welcome", false);
}
- private void WCDownloadButton_Click(object sender, EventArgs e)
+ private void WCDownloadButton_Click(object sender, HtmlElementEventArgs e)
{
WinClassicDownloader opendownload = new WinClassicDownloader();
WindowManager wm = new WindowManager();
@@ -177,6 +186,20 @@ namespace TimeHACK.OS.Win95.Win95Apps
goToSite(addressbar.Text, false);
}
+ private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
+ {
+ switch (addressbar.Text)
+ {
+ 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;
+ }
+ }
+
//TODO: Add more websites
//TODO: Relabel Buttons And Things
}
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.resx b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.resx
index 2021fda..6848c3f 100644
--- a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.resx
+++ b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.resx
@@ -191,7 +191,129 @@ If you Don't like this product you may recieve a full refund on day of purchous.
So Please enjoy Using this amzing software and show the world what your made of.</value>
</data>
- <metadata name="MenuStrip3.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+ <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
+ <data name="MenuStrip3.TrayLocation" type="System.Drawing.Point, System.Drawing">
<value>17, 17</value>
- </metadata>
+ </data>
+ <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
+ <data name="ie4start" type="System.Resources.ResXFileRef, System.Windows.Forms">
+ <value>..\..\..\resources\ie4\ie4start.html;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
+ </data>
+ <data name="ie4start_HTML" xml:space="preserve">
+ <value>&lt;html&gt;
+ &lt;head&gt;
+ &lt;style&gt;
+ body {
+ font-family: "Microsoft Sans Serif";
+ text-align: center;
+ }
+ h1 {
+ margin-top: 19px;
+ font-size: 14.25pt;
+ font-style: bold;
+ }
+ p {
+ font-size: 11.25pt;
+ }
+ h2 {
+ font-size: 12pt;
+ font-style: bold;
+ margin-top: 50px;
+ }
+ p.end {
+ font-size: 9.75pt;
+ }
+ &lt;/style&gt;
+ &lt;/head&gt;
+ &lt;body&gt;
+ &lt;h1&gt;Welcome to Internet Explorer 4&lt;/h1&gt;
+ &lt;p&gt;Welcome To Internet Explorer 4.&lt;br&gt;
+Internet Explorer 4 makes browsing the web and exploring websites a pleasant experience.&lt;br&gt;
+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;p class="end"&gt;Where do you want to go today?&lt;/p&gt;
+ &lt;/body&gt;
+&lt;/html&gt;</value>
+ </data>
+ <data name="padams" type="System.Resources.ResXFileRef, System.Windows.Forms">
+ <value>..\..\..\resources\ie4\padams.html;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
+ </data>
+ <data name="padams_HTML" xml:space="preserve">
+ <value>&lt;html&gt;
+ &lt;head&gt;
+ &lt;style&gt;
+ body {
+ font-family: "Microsoft Sans Serif";
+ text-align: center;
+ }
+ h1 {
+ font-size: 9.75pt;
+ margin-top: 20px;
+ }
+ p {
+ font-size: 9.25pt;
+ margin-top: 0;
+ margin-bottom: 25px;
+ }
+ td div {
+ display: inline-block;
+ border: 1px solid black;
+ width: 215px;
+ height: 305px;
+ margin: 0 3px 0 3px;
+ text-align: center;
+ }
+ h1#copyright {
+ font-size: 9pt;
+ }
+ p.app {
+ margin-top: 30px;
+ }
+ p.app button {
+ float: right;
+ background-color: silver;
+ border-color: gray black black gray;
+ margin-right: 2px;
+ }
+ a {
+ font-size: 9.25pt;
+ color: blue;
+ }
+ &lt;/style&gt;
+ &lt;/head&gt;
+ &lt;body&gt;
+ &lt;h1&gt;Welcome to the Official 12padams website!!!&lt;/h1&gt;
+ &lt;p&gt;The best customizations for your windows 95 computer&lt;/p&gt;
+ &lt;table align="center"&gt;
+ &lt;tr&gt;
+ &lt;td&gt;&lt;div class="software"&gt;
+ &lt;h1&gt;Games/Software&lt;/h1&gt;
+ &lt;p class="app" id="gtn"&gt;Guess the Number V1 &lt;button id="gtn_b"&gt;Download&lt;/button&gt;&lt;/p&gt;
+ &lt;p class="app" id="wc"&gt;Web Chat 1998 &lt;button id="wc_b"&gt;Download&lt;/button&gt;&lt;/p&gt;
+ &lt;p class="app" id="distort"&gt;Time Distorter 0.1 &lt;button id="distort_b"&gt;Download&lt;/button&gt;&lt;/p&gt;
+ &lt;/div&gt;&lt;/td&gt;
+ &lt;td&gt;&lt;div class="customize"&gt;
+ &lt;h1&gt;Customizations&lt;/h1&gt;
+ &lt;p class="app" id="bg"&gt;Backgrounds &lt;button id="bg_b"&gt;View Backgrounds&lt;/button&gt;&lt;/p&gt;
+ &lt;p class="app" id="skn"&gt;Skindows 95 &lt;button id="skn_b"&gt;Info&lt;/button&gt;&lt;/p&gt;
+ &lt;/div&gt;&lt;/td&gt;
+ &lt;td&gt;&lt;div class="viruses"&gt;
+ &lt;h1&gt;Example Viruses&lt;/h1&gt;
+ &lt;p class="app" id="sr"&gt;Start Runner 95 &lt;button id="sr_b"&gt;Download&lt;/button&gt;&lt;/p&gt;
+ &lt;p class="app" id="eb"&gt;Error Blaster 95 &lt;button id="eb_b"&gt;Download&lt;/button&gt;&lt;/p&gt;
+ &lt;/div&gt;&lt;/td&gt;
+ &lt;td&gt;&lt;div class="sites"&gt;
+ &lt;h1&gt;WebSites&lt;/h1&gt;
+ &lt;a id="hotmail" href="hotmail"&gt;www.hotmail.com&lt;/a&gt;
+ &lt;/div&gt;&lt;/td&gt;
+ &lt;/tr&gt;
+ &lt;/table&gt;
+ &lt;h1 id="copyright"&gt;Copyright 1998 12padams&lt;/h1&gt;
+ &lt;/body&gt;
+&lt;/html&gt;</value>
+ </data>
</root> \ No newline at end of file