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
struct ContentView: View { | |
var body: some View { | |
List { | |
PosterView() | |
Section(header: Text("Section")) { | |
TestView() | |
} | |
Section(header: Text("Section")) { |
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 PerchTemplateFilter_length extends PerchTemplateFilter | |
{ | |
public function filterBeforeProcessing($value, $valueIsMarkup = false) | |
{ | |
$word = str_word_count(strip_tags($value)); | |
$m = floor($word / 200); | |
$s = floor($word % 200 / (200 / 60)); |
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
var scrollElement = function (element, scrollPosition, duration) { | |
var style = element.style; | |
// setup CSS transition duration and easing function | |
style.webkitTransition = | |
style.transition = duration + 's'; | |
style.webkitTransitionTimingFunction = | |
style.TransitionTimingFunction = 'ease-in-out'; | |
// use translate3d to force hardware acceleration |
NewerOlder