Onto yesterdayโs Contenteditable OuterHTML Ideas Mobile Tutorial we turn our attention to some aesthetics matters with this โContenteditable OuterHTML Ideasโ web application. Yes, most of this involves CSS changes, such as those for those div elements โฆ
<style>
div.indiv {
outline: 2px solid green;
outline-offset: 2px;
padding: 2 2 2 2;
border: 12px solid transparent;
border-image: -webkit-linear-gradient(45deg,pink,orange,fuchsia,cyan,lightgreen) 20 stretch;
font-weight: bold;
font-style: italic;
}
</style>
โฆ for a โhigh impactโ look. And then there are watermark changes โฆ.
<style>
span {
transform: rotate(45deg);
font-family: Arial, Helvetica, sans-serif;
font-style: oblique;
}
</style>
And then there is a vague blurry subtle green radial gradient look applied to the background of that โtable clone for watermarking purposesโ โฆ
shadowtable=document.getElementById('mytable').outerHTML.replace('mytable', 'shadowtable').replace(' style="', ' style="position:absolute;top:' + shadowrect.top + 'px;left:' + shadowrect.left + 'px;opacity:0.5;z-index:-9; background: #75f547; background: -webkit-radial-gradient(center center, circle cover, rgba(117, 245, 71, 1), rgba(255, 255, 255, 0) 100%); background: radial-gradient(center center, circle cover, rgba(117, 245, 71, 1), rgba(255, 255, 255, 0) 100%);').replace(/\<td\>/g, '<td style="opacity:0.5;border: 1px solid transparent; vertical-align: middle; text-align: center;transform: rotate(45deg);font-size:' + fifty + 'px;"><span></span>');
All still in action together in thechanged proof of concept contenteditable_outerhtml_ideashtm web
application ideas.
Previous relevant Contenteditable OuterHTML Ideas Mobile Tutorial is shown below.
Developing yesterdayโs Contenteditable OuterHTML Ideas Watermark Tutorial on this MacBook Air had us a bit neglectful of mobile platforms. This neglectfulness manifested itself in the usual โwidthโ and โheightโ dilemmas โฆ
- add a meta viewport tag, such as our โฆ
<meta id="myviewport" name="viewport" content="width=device-width, initial-scale=1, minimum-scale=0.1, maximum-scale=8, user-scalable=yes" > - start using โheightโ โvhโ units ahead of โ%โ units, supplementing the initial โbodyโ element โฆ
<body onload=" tablehit();">
<table border=10 id=mytable style="width:100%;height:91%;" title="Contenteditable outerHTML Ideas - RJM Programming - March, 2022">
<tr><td></td><td></td><td></td></tr>
<tr><td></td><td></td><td></td></tr>
<tr><td></td><td></td><td></td></tr>
</table>
<div id=dshadow></div>
<div id=dkeys></div>
</body>
โฆ with CSS โฆ
<style>
body {
min-height: 91vh;
min-height: webkit-fill-available;
}
</style>
โฆ and Javascript โฆ
function tablehit() {
//
// other top blah blah blah
//
if (!navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
document.getElementById('mytable').style.height='' + eval(-170 + screen.height) + 'px';
} else {
fifty='40';
document.getElementById('mytable').style.height='91vh';
}
//
// other bottom blah blah blah
//
}
โฆ all in action together in thechanged proof of concept contenteditable_outerhtml_ideashtm web
application ideas.
Previous relevant Contenteditable OuterHTML Ideas Watermark Tutorial is shown below.
Am sure there are a few readers out there bemused by the use of a 3ร3 table cell grid background to the โContenteditable OuterHTML Ideasโ web application of yesterdayโs Contenteditable OuterHTML Ideas Animation Tutorial. Well, it provides โฆ
- some structure โฆ and today it provides โฆ
- some use โฆ for adding a watermark explanatory piece of text regarding those animations
Well, a close clone of the original 3ร3 table grid element hosts these watermarks. Yes, itโs another โoverlayโ scenario using โฆ
- position: absolute;
- top: [via {origTable}.getBoundingClientRect().top]
- left: [via {origTable}.getBoundingClientRect().left]
- opacity: [lessThan1.0];
โฆ all in action together in thechanged proof of concept contenteditable_outerhtml_ideashtm web
application ideas.
Previous relevant Contenteditable OuterHTML Ideas Animation Tutorial is shown below.
Today, we want to build on yesterdayโs Contenteditable OuterHTML Ideas Primer Tutorialโs โฆ
- very early on โฆ seeing how useful was โฆ innerHTML for HTML elements with proper endtag arrangements
- years later โฆ seeing how useful was โฆ outerHTML for piecing together content for inline HTML emails, for example
- and later again โฆ seeing how useful was โฆ contenteditable=true for a CMS (content management system) feel to HTML elements with proper endtag arrangements
โฆ with some โsecond tierโ event driven ideas โฆ
- introduce td (table cell) โฆ onclick logic โฆ so as to facilitate optional โฆ
- CSS โฆ animation functionality, partitioned from yesterdayโs work via โฆ
- avoiding inherited event logic issues, as necessary, via โฆ event.stopPropagation();
โฆ all in action together in thechanged proof of concept contenteditable_outerhtml_ideashtm web
application ideas โฆ
Previous relevant Contenteditable OuterHTML Ideas Primer Tutorial is shown below.
Javascript DOM (document object model) work can be very rewarding, and you can achieve a lot of client based webpage work in a very dynamic way using its techniques. Of the gobsmacking highlights we well remember โฆ
- very early on โฆ seeing how useful was โฆ innerHTML for HTML elements with proper endtag arrangements
- years later โฆ seeing how useful was โฆ outerHTML for piecing together content for inline HTML emails, for example
- and later again โฆ seeing how useful was โฆ contenteditable=true for a CMS (content management system) feel to HTML elements with proper endtag arrangements
โฆ and weโd like to condense that length of time for some potential readers interested in seeing these Javascript DOM stars all in action together in the one proof of concept web application. Its design is just a 3ร3 grid table in the background with each table cell populated by div contenteditable content the user can change (ie. their content changes are reflected in the look of the div elements afterwards).
We also use the wonderful CSS calc() function as a precision HTML element placement tool that also may interest the user of our proof of concept contenteditable_outerhtml_ideashtml web
application ideas โฆ
If this was interesting you may be interested in this too.
If this was interesting you may be interested in this too.
If this was interesting you may be interested in this too.
If this was interesting you may be interested in this too.
If this was interesting you may be interested in this too.