The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23/12/2008
- Revised date: 15/12/2013
- Original post
| jQuery(document).ready(function( $ ){ | |
| function responsiveFrame() { | |
| $( 'iframe' ).each(function(){ | |
| var fh = $( this ).height(); | |
| var fw = $( this ).width(); | |
| var fp = $( this ).parent().width(); | |
| var fpw = fp/fw; | |
| var fpwh = Math.round( fh*fpw ); | |
| $( this ).css({ |
| /* | |
| Display remaining characters in a textarea. | |
| */ | |
| (function($) { | |
| // Get every teatarea | |
| $( 'textarea[maxlength]' ).each(function(){ | |
| // Add listener | |
| $(this).on('input propertychange', function() { | |
| // Parse maxlength attribute | |
| var max = parseInt($( this ).attr( 'maxlength' )); |
| /** | |
| * Methode für das Beenden der Anwendung mit Bestätigungsdialog | |
| */ | |
| private void closePromt() { | |
| int close; | |
| close = JOptionPane.showInternalConfirmDialog(desktopPane, "Programm Beenden?", "Anwendung beenden.", JOptionPane.YES_NO_OPTION); | |
| if (close == 0) { | |
| System.exit(0); | |
| } |
| import java.text.DateFormat; | |
| import java.text.ParseException; | |
| import java.util.Date; | |
| import javax.swing.InputVerifier; | |
| import javax.swing.JComponent; | |
| import javax.swing.JFormattedTextField; | |
| import javax.swing.JOptionPane; | |
| public class DatumVerifier extends InputVerifier { |
| # Wichtige Module Importieren | |
| import bpy | |
| import math | |
| # Etwas Schreibarbeit sparen | |
| objects = bpy.data.objects | |
| context = bpy.context | |
| ops = bpy.ops | |
| ops.object.duplicate_move() |
| # Wichtige Module importieren | |
| import bpy | |
| import math | |
| # Variablen | |
| dauer = 5 | |
| strecke = 10 | |
| durchmesser = bpy.context.object.dimensions.z | |
| umfang = durchmesser * math.pi |
| import bpy | |
| import math | |
| # Variablen | |
| d = 0.25 # Durchmesser | |
| h = 1.7 # Hoehe | |
| v = 0.8 # Geschwindigkeit | |
| g = 9.81 # Erdanziehung | |
| import bpy | |
| import math | |
| # Variablen | |
| durchmesser = 0.25 #object.dimensions[0] | |
| höhe = 1.7 | |
| wurfgeschwindigkeit = 3 | |
| g = 9.81 | |
| // Mixins | |
| .has(@element; @content) { | |
| &__@{element} { | |
| @content(); | |
| } | |
| } | |
| .variant(@modifier; @content) { | |
| &--@{modifier} { | |
| @content(); |