from IPython.display import HTML
function div_hide_display() {
$('#d302h04').each(function(id) {
if (id==0||$(this).html().indexOf('hide_display')>-1)
$('#d302h04').css('opacity',0);}
else {$('#d302h04').each(function(id){$(this).show();});
$('#d302h04').css('opacity',1);};
$(document).ready(div_hide_display);
<div id='d302h04' style='border:double slategray; width:32%;'>
<p>😋 😌 😍 😎 😏 ===> HELLO</p><center>
src='https://raw.githubusercontent.com/OlgaBelitskaya/data/main/
</center><p>HELLO <=== 😋 😌 😍 😎 😏</p></div>
<form action='javascript:div_hide_display()'>
<input style='color:slategray; background:silver; opacity:.7;'
type='submit' value='click to display or hide div'></form>""")
No comments:
Post a Comment