Skip to content

Commit

Permalink
examples: shorter unpkg link
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Aug 6, 2024
1 parent e615350 commit 5701a0a
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion examples/basic-example.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
<meta charset="utf-8">
<title>Nette Forms basic example</title>
<link rel="stylesheet" media="screen" href="assets/style.css" />
<script src="https://unpkg.com/nette-forms@3/src/assets/netteForms.js"></script>
<script src="https://unpkg.com/nette-forms@3"></script>

<h1>Nette Forms basic example</h1>

Expand Down
2 changes: 1 addition & 1 deletion examples/custom-control.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public static function validateDate(Nette\Forms\Control $control): bool
<meta charset="utf-8">
<title>Nette Forms custom control example</title>
<link rel="stylesheet" media="screen" href="assets/style.css" />
<script src="https://unpkg.com/nette-forms@3/src/assets/netteForms.js"></script>
<script src="https://unpkg.com/nette-forms@3"></script>

<h1>Nette Forms custom control example</h1>

Expand Down
2 changes: 1 addition & 1 deletion examples/custom-rendering.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
background: #EEE;
}
</style>
<script src="https://unpkg.com/nette-forms@3/src/assets/netteForms.js"></script>
<script src="https://unpkg.com/nette-forms@3"></script>

<h1>Nette Forms custom rendering example</h1>

Expand Down
2 changes: 1 addition & 1 deletion examples/custom-validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public static function divisibilityValidator($item, $arg): bool
<meta charset="utf-8">
<title>Nette Forms custom validator example</title>
<link rel="stylesheet" media="screen" href="assets/style.css" />
<script src="https://unpkg.com/nette-forms@3/src/assets/netteForms.js"></script>
<script src="https://unpkg.com/nette-forms@3"></script>

<script>
Nette.validators.MyValidators_divisibilityValidator = function(elem, args, val) {
Expand Down
2 changes: 1 addition & 1 deletion examples/html5.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<meta charset="utf-8">
<title>Nette Forms and HTML5</title>
<link rel="stylesheet" media="screen" href="assets/style.css" />
<script src="https://unpkg.com/nette-forms@3/src/assets/netteForms.js"></script>
<script src="https://unpkg.com/nette-forms@3"></script>

<h1>Nette Forms and HTML5</h1>

Expand Down
2 changes: 1 addition & 1 deletion examples/live-validation.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<meta charset="utf-8">
<title>Nette Forms live validation example</title>
<link rel="stylesheet" media="screen" href="assets/style.css" />
<script src="https://unpkg.com/nette-forms@3/src/assets/netteForms.js"></script>
<script src="https://unpkg.com/nette-forms@3"></script>
<script src="https://code.jquery.com/jquery-3.0.0.min.js" integrity="sha256-JmvOoLtYsmqlsWxa7mDSLMwa6dZ9rrIdtrrVYRnDRH0=" crossorigin="anonymous"></script>

<script>
Expand Down
2 changes: 1 addition & 1 deletion examples/localization.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function translate($message, ...$parameters): string
<meta charset="utf-8">
<title>Nette Forms localization example</title>
<link rel="stylesheet" media="screen" href="assets/style.css" />
<script src="https://unpkg.com/nette-forms@3/src/assets/netteForms.js"></script>
<script src="https://unpkg.com/nette-forms@3"></script>

<h1>Nette Forms localization example</h1>

Expand Down
2 changes: 1 addition & 1 deletion examples/manual-rendering.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<meta charset="utf-8">
<title>Nette Forms manual form rendering</title>
<link rel="stylesheet" media="screen" href="assets/style.css" />
<script src="https://unpkg.com/nette-forms@3/src/assets/netteForms.js"></script>
<script src="https://unpkg.com/nette-forms@3"></script>
</head>

<body>
Expand Down

0 comments on commit 5701a0a

Please sign in to comment.