xxxxxxxxxx
%%html
<style>
import 'https://fonts.googleapis.com/css?family=Ewert|Roboto';
</style>
<button type='button'
style='background-color:silver; color:#3636ff;
font-family:Ewert; font-size:150%;'
onclick="myfun('\\frac{x^2}{p^2}+\\frac{y^2}{q^2}=1')">
Click to encode URI components
</button>
<p id='demo'
style='color:#3636ff; font-family:Roboto; font-size:14px;'>
</p>
<img width='200px'
src='https://render.githubusercontent.com/render/math?math=\\
%5Cfrac%7Bx%5E2%7D%7Bp%5E2%7D%2B%5Cfrac%7By%5E2%7D%7Bq%5E2%7D%3D1'>
</img>
<script>
function myfun(s){
doc=document.getElementById('demo');
doc.innerHTML=encodeURIComponent(s);};
No comments:
Post a Comment