1
0
mirror of https://github.com/gnosygnu/xowa.git synced 2026-03-02 03:49:30 +00:00

Special: Broadcast events to one specific tab, not all tabs with same name

This commit is contained in:
gnosygnu
2017-03-19 03:08:57 -04:00
parent 67548465fc
commit cc8c120982
15 changed files with 59 additions and 17 deletions

View File

@@ -28,6 +28,8 @@ public class Xopage_html_data {
public Xopg_tag_mgr Tail_tags() {return tail_tags;} private final Xopg_tag_mgr tail_tags = new Xopg_tag_mgr(Bool_.N);
public void Apply(Xoa_page page) {
Xopg_tag_wtr_.Add__tab_uid (head_tags, page.Page_guid());
Xopg_html_data html_data = page.Html_data();
html_data.Html_restricted_n_();
html_data.Skip_parse_(Bool_.Y);

View File

@@ -20,6 +20,9 @@ public class Xopg_tag_wtr_ {
head_tags.Add(Xopg_tag_itm.New_js_file(css_dir.GenSubFil_nest("Namespace_.js")));
head_tags.Add(Xopg_tag_itm.New_js_file(css_dir.GenSubFil_nest("String_.js")));
}
public static void Add__tab_uid(Xopg_tag_mgr head_tags, Guid_adp page_guid) {
head_tags.Add(Xopg_tag_itm.New_js_code("xo.page_guid = '" + page_guid.To_str() + "'"));
}
public static void Add__xocss(Xopg_tag_mgr head_tags, Io_url http_root) {
Io_url css_dir = http_root.GenSubDir_nest("bin", "any", "xowa", "html", "res", "src", "xowa", "xocss", "core");
head_tags.Add(Xopg_tag_itm.New_css_file(css_dir.GenSubFil_nest("xocss_core-0.0.1.css")));