Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

discussions tab? #1462

Open
ldijkman opened this issue Oct 19, 2023 · 2 comments
Open

discussions tab? #1462

ldijkman opened this issue Oct 19, 2023 · 2 comments

Comments

@ldijkman
Copy link

ldijkman commented Oct 19, 2023

would like to ask something
but does not fit issues
issue => maybe add a discusions tab under settings ?

https://ldijkman.github.io/Ace_Seventh_Heaven/Hell.html

@ldijkman
Copy link
Author

ldijkman commented Oct 19, 2023

oh i found a nice demo page
https://terser.org/html-minifier-terser/

@ldijkman
Copy link
Author

ldijkman commented Oct 21, 2023

Forgive me if i am wrong
i am a mechanic , i screw things
would like to put this in discussions, but is not active in this repository

playing with this, but it breaks my function

included this

<script src="https://cdn.jsdelivr.net/npm/source-map@0.7.3/dist/source-map.js"></script>
<script src="https://cdn.jsdelivr.net/npm/terser/dist/bundle.min.js"></script>
<!-- button to call function terserall -->
<input type="button" class="dropbt" id="" onclick="terserall();" title="terser? &#013; https://terser.org/ &#013; https://github.com/terser/terser" style="" onmouseover="this.focus()" value="4 Javascript Mnify">
<script>
function terserall() {
  var text = editor.getValue(); // get text contens of ace editor
  var code = text;
  var result = await minify(code, {
    sourceMap: true
  }); // this breaks the function tersersall , minify not found, await maybe problem
  console.log(result.code); // minified output: function add(n,d){return n+d}
  console.log(result.map);	// source map
  editor.getSession().setValue(result.code); // set editor text
  minimapeditor.setValue(editor.getSession().getValue()); // set minimap text
}

</script>

i would say more ore less the example from description
but cannot figure out what i am doing wrong
cannot find any codepen examples

luberth
https://ldijkman.github.io/Ace_Seventh_Heaven/Hell.html

2023-10-21-203415_1920x1080_scrot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant