Skip to content

Commit 5ddbfca

Browse files
save file
1 parent ba840fd commit 5ddbfca

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

utils/editors/html/editors-hdr/v2.0/editors-hdr-v2.0.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
::slotted(.visually-hidden)
4141
{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}
4242

43+
input[type=button]
44+
{font-size:16px;padding:5px 10px;cursor:pointer}
4345

4446
</style>
4547

@@ -54,6 +56,8 @@
5456
<top-menu component=grp></top-menu>
5557

5658
</div>
59+
60+
<input value=isolate type=button>
5761

5862
<slot></slot>
5963

@@ -118,13 +122,32 @@
118122

119123
top.initdom(shadow);
120124

125+
$(shadow,'[value=isolate]').onclick = btn.isolate;
126+
121127

122128
}//initdom
123129

124130

125131
//:
126132

127133

134+
btn.isolate = function(){
135+
136+
var url = window.location.toString();
137+
138+
if(url.indexOf('?')){
139+
return;
140+
}
141+
142+
url += '?isolate';
143+
window.location = url;
144+
145+
}//isolate
146+
147+
148+
//:
149+
150+
128151
function debug(){
129152

130153
if(!df && !obj.df)return;

0 commit comments

Comments
 (0)