This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jarEl.src = ``; | |
cupBase[1] = 5; | |
boxBody = new p2.Body({ mass: 0, position: [cupBase[0], cupBase[1]] }); | |
console.log(boxBody); | |
boxShape = new p2.Box({ width: 1920, height: 5 }); | |
boxShape.material = this.materials.wall; | |
boxBody.addShape(boxShape); | |
this.world.addBody(boxBody); | |
this.world.addBody(this.createRectangleBody([0, 0], 1, 1080, 0)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class WidgetWithBehaviorScript extends WP_Widget { | |
function __construct() { | |
parent::__construct(__CLASS__, 'Widget with Accompanying Behavior Script', array( | |
'classname' => __CLASS__, | |
'description' => "This WordPress widget serves as a pattern for how to enqueue a script only if the widget is actually rendered." | |
)); |