diff options
| author | Michael VanOverbeek <[email protected]> | 2016-07-21 10:31:59 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2016-07-21 10:31:59 -0700 |
| commit | b9911efba3bc070c4a4995a8cf89163ef1685af6 (patch) | |
| tree | d8221840d0e1c15a296bcf577d4930946024ec5d /source/WindowsFormsApplication1/Apps/Shiftnet.cs | |
| parent | 4fe0de40aa9e3dc82de40d447331c39fab5f4c4c (diff) | |
| parent | 81a2cdc582817fc6575ac6096c3d795e1f1831ca (diff) | |
| download | shiftos-c--b9911efba3bc070c4a4995a8cf89163ef1685af6.tar.gz shiftos-c--b9911efba3bc070c4a4995a8cf89163ef1685af6.tar.bz2 shiftos-c--b9911efba3bc070c4a4995a8cf89163ef1685af6.zip | |
Merge pull request #8 from carverh/master
Fixed Bugs, Added Story, Added Commands, Cleaned Up Source, and More
Diffstat (limited to 'source/WindowsFormsApplication1/Apps/Shiftnet.cs')
| -rw-r--r-- | source/WindowsFormsApplication1/Apps/Shiftnet.cs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source/WindowsFormsApplication1/Apps/Shiftnet.cs b/source/WindowsFormsApplication1/Apps/Shiftnet.cs index cbcab1b..017377c 100644 --- a/source/WindowsFormsApplication1/Apps/Shiftnet.cs +++ b/source/WindowsFormsApplication1/Apps/Shiftnet.cs @@ -60,11 +60,17 @@ namespace ShiftOS wbshiftnet.DocumentText = WebLayer.VisitSite("shiftnet://main"); txtaddress.Text = WebLayer.LastUrl; } + + private void txtaddress_TextChanged(object sender, EventArgs e) + { + + } } public class WebLayer { - private static string HtmlTemplate = "<html><head><title>Shiftnet Page</title><link rel=\"stylesheet\" href=\"http://playshiftos.ml/shiftnet.css\"/></head><body>#BODY#</body></html>"; + public static String serverurl = "http://playshiftos.ml"; + private static string HtmlTemplate = "<html><head><title>Shiftnet Page</title><link rel=\"stylesheet\" href=\"" + serverurl + "/shiftnet.css\"/></head><body>#BODY#</body></html>"; public static string LastUrl = null; public static string VisitSite(string url) @@ -74,7 +80,7 @@ namespace ShiftOS { try { - string content = wc.DownloadString(url.Replace("shiftnet://", "http://www.playshiftos.ml/shiftnet/www/")); + string content = wc.DownloadString(url.Replace("shiftnet://", serverurl + "/shiftnet/www/")); if (content.StartsWith("<!STML>")) { LastUrl = url; |
