Skip to content
Permalink
Browse files

Update learning fields and template

  • Loading branch information
emdecr committed Feb 12, 2020
1 parent 35f512c commit bd426bc1c87b21a36443d147a509b9be1d023d08
@@ -36,8 +36,8 @@
target="_blank"
></a>
<div class="bar-container">
<span class="_bar" :style="{ width: calcPercentage(course.course_percent)}"></span>
<span class="_percent">{{calcPercentage(course.course_percent)}}</span>
<span class="_bar" :style="{ width: course.course_percent + '%'}"></span>
<span class="_percent">{{course.course_percent + '%'}}</span>
</div>
</div>
</li>
@@ -117,11 +117,6 @@ export default {
type(event) {
let newType = event.type.replace(/([A-Z])/g, " $1").trim();
return newType.replace(" Event", "");
},
calcPercentage(count) {
var percent = (count / 100) * 100;
var rounded = percent.toFixed(1);
return rounded + "%";
}
},
computed: {
@@ -55,7 +55,6 @@ function mb_annotation_callback( $attributes, $is_preview = false, $post_id = nu
[
'type' => 'wysiwyg',
'id' => 'annotation_text',
'name' => 'Text',
],
[
'type' => 'textarea',
@@ -87,7 +87,8 @@ function pages_meta_boxes( $meta_boxes) {
array (
'name' => __( 'Course %' ),
'id' => 'course_percent',
'type' => 'text',
'desc' => 'Just the number.',
'type' => 'number',
),
),
),

0 comments on commit bd426bc

Please sign in to comment.
You can’t perform that action at this time.