Example #1
0
        public static IHTMLDOMNode create_display_div(HTMLDocument document,Store store,config config)
        {
            IHTMLElement div = document.createElement("div");

            /* This will be removed */
            YesLink yes = new YesLink(document, config.accept_url, store.id, document.url);

            ((IHTMLDOMNode) div).appendChild((IHTMLDOMNode) yes.Element);

            /* End removed */

            return (IHTMLDOMNode) div;
        }
Example #2
0
        public JavascriptNode(HTMLDocument Document,config Config,Store Store)
        {
            StringBuilder builder = new StringBuilder();
            IHTMLElement notice_div = (IHTMLElement) new NoticeDiv(Document, Config, Store).NoticeDivDomNode;

            _script = (IHTMLScriptElement) Document.createElement("script");
            _script.type = "text/javascript";

            _script.text += (new GetCookieScript(Document).ToString());
            _script.text += (new SetCookieCacheScript(Document).ToString());

            // This script inserts the Buy4 notice into the DOM
            /*
            builder.Append("var notice = document.createElement(\"span\");");
            builder.Append("notice.id = \"container_div\";");

            builder.Append("notice.style.position =\"absolute\";");
            builder.Append("notice.style.top = \"10px\";");
            builder.Append("notice.style.align = \"center\";");
            builder.Append("notice.style.left = \"10px\";");
            builder.Append("notice.style.width = \"97%\";");
            builder.Append("notice.style.height = \"auto\";");
            builder.Append("notice.style.zIndex = \"1000\";");
            builder.Append(String.Format("notice.innerHTML= '{0}';", notice_div.outerHTML.Replace(Environment.NewLine, "")));
            */

            /*
            builder.Append("alert(get_cookie(\"buy4_cache\"));");
            */
            /*
            builder.Append("if( get_cookie(\"buy4_cache\") != \"true\" )");
            builder.Append("{ document.body.appendChild(notice); }");
            */

            _script.text = builder.ToString();
        }
Example #3
0
 public NoticeText(HTMLDocument Document, config Config, Store Store)
 {
     _notice_text = " " + Config.display_html
         .Replace("###name###", Store.name)
         .Replace("###typical_donation###", Store.typical_donation);
 }