Skip to content

Commit

Permalink
new: Version under construction !wip
Browse files Browse the repository at this point in the history
  • Loading branch information
motrellin committed Aug 6, 2024
1 parent 40e81e5 commit be70c61
Show file tree
Hide file tree
Showing 4 changed files with 145 additions and 0 deletions.
102 changes: 102 additions & 0 deletions html/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
<!DOCTYPE html>
<html lang="de">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mini-Theo</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 20px;
}

#content {
margin-top: 20px;
}

.new-content {
background-color: #f0f0f0;
padding: 10px;
margin-top: 10px;
border-radius: 5px;
}

.new-content img {
max-width: 100px;
margin-right: 10px;
border-radius: 5px;
}

button {
padding: 10px 15px;
font-size: 16px;
cursor: pointer;
background-color: #007BFF;
color: white;
border: none;
border-radius: 5px;
}

button:hover {
background-color: #0056b3;
}

button:disabled {
background-color: #cccccc;
cursor: not-allowed;
}
</style>

<!-- Einbindung von MathJax -->
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
</head>

<body>

<h1>Mini-Theo</h1>
<p>Mini-Theo ist eine Plattform, um den Minimierungs-Algorithmus </p>

<button id="addContentButton">Inhalt hinzufügen</button>

<div id="content">
<p>Exercise under construction...</p>
<!-- Hier wird neuer Inhalt hinzugefügt -->
</div>

<script>
document.getElementById('addContentButton').addEventListener('click', function () {
// Erstelle ein neues div-Element
var newContent = document.createElement('div');
newContent.className = 'new-content';
newContent.textContent = 'Solution under construction...';

// Erstelle ein neues img-Element
var img = document.createElement('img');
img.src = 'https://via.placeholder.com/100'; // Beispiel-URL für das Bild
img.alt = 'Ein Bild';

// Erstelle einen Textknoten
var text = document.createTextNode('Dies ist ein neuer Inhalt mit Bild.');

// Erstelle einen Textknoten für LaTeX
var latexText = document.createElement('div');
latexText.innerHTML = 'Dies ist eine LaTeX-Formel: $$E = mc^2$$';

// Füge das img-Element und den Text zum div-Element hinzu
newContent.appendChild(img);
newContent.appendChild(text);
newContent.appendChild(latexText);

// Füge das neue div-Element dem content-Container hinzu
document.getElementById('content').appendChild(newContent);

// Deaktiviere den Button
this.disabled = true;
});
</script>

</body>

</html>
Binary file added res/DFA1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 43 additions & 0 deletions res/DFA1.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
\documentclass[12pt]{article}
\usepackage{tikz}

\begin{document}

\begin{center}
\begin{tikzpicture}[scale=0.2]
\tikzstyle{every node}+=[inner sep=0pt]
\draw [black] (18.4,-22.7) circle (3);
\draw (18.4,-22.7) node {$Z1$};
\draw [black] (37.8,-22.7) circle (3);
\draw (37.8,-22.7) node {$Z2$};
\draw [black] (37.8,-22.7) circle (2.4);
\draw [black] (59.2,-23.3) circle (3);
\draw (59.2,-23.3) node {$Z3$};
\draw [black] (59.2,-23.3) circle (2.4);
\draw [black] (27.6,-37.4) circle (3);
\draw (27.6,-37.4) node {$Z4$};
\draw [black] (10.6,-22.7) -- (15.4,-22.7);
\fill [black] (15.4,-22.7) -- (14.6,-22.2) -- (14.6,-23.2);
\draw [black] (56.809,-25.104) arc (-58.57436:-124.63764:15.345);
\fill [black] (40.09,-24.63) -- (40.46,-25.5) -- (41.03,-24.68);
\draw (48.36,-27.88) node [below] {$1$};
\draw [black] (39.123,-25.38) arc (54:-234:2.25);
\draw (37.8,-29.95) node [below] {$1$};
\fill [black] (36.48,-25.38) -- (35.6,-25.73) -- (36.41,-26.32);
\draw [black] (40.125,-20.812) arc (123.24957:53.53842:14.756);
\fill [black] (56.98,-21.28) -- (56.64,-20.41) -- (56.04,-21.21);
\draw (48.65,-17.87) node [above] {$0$};
\draw [black] (61.88,-21.977) arc (144:-144:2.25);
\draw (66.45,-23.3) node [right] {$0$};
\fill [black] (61.88,-24.62) -- (62.23,-25.5) -- (62.82,-24.69);
\draw [black] (26.01,-34.86) -- (19.99,-25.24);
\fill [black] (19.99,-25.24) -- (19.99,-26.19) -- (20.84,-25.66);
\draw (23.63,-28.76) node [right] {$0,1$};
\draw [black] (21.4,-22.7) -- (34.8,-22.7);
\fill [black] (34.8,-22.7) -- (34,-22.2) -- (34,-23.2);
\draw (28.1,-23.2) node [below] {$0,1$};
\end{tikzpicture}
\end{center}

\end{document}

Binary file added res/DFA1_transparenter_Hintergrund.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit be70c61

Please sign in to comment.