Skip to content

Commit

Permalink
used unpkg.com for netteForms
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Oct 13, 2023
1 parent e51e8b5 commit 387cc53
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 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://nette.github.io/resources/js/3/netteForms.js"></script>
<script src="https://unpkg.com/nette-forms@3/src/assets/netteForms.js"></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 @@ -131,7 +131,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://nette.github.io/resources/js/3/netteForms.js"></script>
<script src="https://unpkg.com/nette-forms@3/src/assets/netteForms.js"></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://nette.github.io/resources/js/3/netteForms.js"></script>
<script src="https://unpkg.com/nette-forms@3/src/assets/netteForms.js"></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://nette.github.io/resources/js/3/netteForms.js"></script>
<script src="https://unpkg.com/nette-forms@3/src/assets/netteForms.js"></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 @@ -57,7 +57,7 @@
<meta charset="utf-8">
<title>Nette Forms and HTML5</title>
<link rel="stylesheet" media="screen" href="assets/style.css" />
<script src="https://nette.github.io/resources/js/3/netteForms.js"></script>
<script src="https://unpkg.com/nette-forms@3/src/assets/netteForms.js"></script>

<h1>Nette Forms and HTML5</h1>

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

<body>
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://nette.github.io/resources/js/3/netteForms.js"></script>
<script src="https://unpkg.com/nette-forms@3/src/assets/netteForms.js"></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://nette.github.io/resources/js/3/netteForms.js"></script>
<script src="https://unpkg.com/nette-forms@3/src/assets/netteForms.js"></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://nette.github.io/resources/js/3/netteForms.js"></script>
<script src="https://unpkg.com/nette-forms@3/src/assets/netteForms.js"></script>
</head>

<body>
Expand Down

0 comments on commit 387cc53

Please sign in to comment.