|
@ -1,26 +1,28 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div> |
|
|
<div> |
|
|
|
|
|
|
|
|
<!-- menou --> |
|
|
<!-- menou --> |
|
|
<div class="row" |
|
|
<div class="row" v-show="showmenou == 1"> |
|
|
v-show="showmenou == 1" |
|
|
|
|
|
> |
|
|
|
|
|
|
|
|
|
|
|
<div class="col-3"> |
|
|
<div class="col-3"> |
|
|
<div class="input-group-append"> |
|
|
<div class="input-group-append"> |
|
|
<button type="button" |
|
|
<button |
|
|
|
|
|
type="button" |
|
|
round |
|
|
round |
|
|
v-if="columnviewdefault == '0'" |
|
|
v-if="columnviewdefault == '0'" |
|
|
class="ti-layout-sidebar-none btn btn-outline-info btn-sm" |
|
|
class="ti-layout-sidebar-none btn btn-outline-info btn-sm" |
|
|
@click="fullscreen('max')"> |
|
|
@click="fullscreen('max')" |
|
|
Max-Notebook View </button> |
|
|
> |
|
|
|
|
|
Max-Notebook View |
|
|
|
|
|
</button> |
|
|
|
|
|
|
|
|
<button type="button" |
|
|
<button |
|
|
|
|
|
type="button" |
|
|
round |
|
|
round |
|
|
v-if="columnviewdefault == '1'" |
|
|
v-if="columnviewdefault == '1'" |
|
|
class="ti-layout-sidebar-right btn btn-outline-info btn-sm" |
|
|
class="ti-layout-sidebar-right btn btn-outline-info btn-sm" |
|
|
@click="fullscreen('min')"> |
|
|
@click="fullscreen('min')" |
|
|
Min-Notebook View</button> |
|
|
> |
|
|
|
|
|
Min-Notebook View |
|
|
|
|
|
</button> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
@ -30,45 +32,41 @@ |
|
|
|
|
|
|
|
|
<div class="col-3"> |
|
|
<div class="col-3"> |
|
|
<div class="input-group-prepend"> |
|
|
<div class="input-group-prepend"> |
|
|
<button type="button" |
|
|
<button |
|
|
|
|
|
type="button" |
|
|
round |
|
|
round |
|
|
v-if="columncodedefault == '0'" |
|
|
v-if="columncodedefault == '0'" |
|
|
class="ti-layout-sidebar-none btn btn-outline-info btn-sm" |
|
|
class="ti-layout-sidebar-none btn btn-outline-info btn-sm" |
|
|
style="float: right;" |
|
|
style="float: right;" |
|
|
@click="fullscreen('codemax')"> |
|
|
@click="fullscreen('codemax')" |
|
|
Max-Code View </button> |
|
|
> |
|
|
|
|
|
Max-Code View |
|
|
|
|
|
</button> |
|
|
|
|
|
|
|
|
<button type="button" |
|
|
<button |
|
|
|
|
|
type="button" |
|
|
round |
|
|
round |
|
|
v-if="columncodedefault == '1'" |
|
|
v-if="columncodedefault == '1'" |
|
|
style="float: right;" |
|
|
style="float: right;" |
|
|
class="ti-layout-sidebar-left btn btn-outline-info btn-sm" |
|
|
class="ti-layout-sidebar-left btn btn-outline-info btn-sm" |
|
|
@click="fullscreen('codemin')"> |
|
|
@click="fullscreen('codemin')" |
|
|
Min-Code View</button> |
|
|
> |
|
|
|
|
|
Min-Code View |
|
|
|
|
|
</button> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<!-- menou --> |
|
|
<!-- menou --> |
|
|
|
|
|
|
|
|
|
|
|
<div class="row"> |
|
|
|
|
|
|
|
|
<div class="row" > |
|
|
|
|
|
|
|
|
|
|
|
<div :class="columnview"> |
|
|
<div :class="columnview"> |
|
|
<ad-hoc |
|
|
<ad-hoc style="background-color: #f8f9fa"> </ad-hoc> |
|
|
style="background-color: #f8f9fa" |
|
|
|
|
|
> |
|
|
|
|
|
</ad-hoc> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div :class="columncode"> |
|
|
<div :class="columncode"> |
|
|
<run-llo |
|
|
<run-llo style="background-color: #f8f9fa"> </run-llo> |
|
|
style="background-color: #f8f9fa" |
|
|
|
|
|
> |
|
|
|
|
|
</run-llo> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
@ -77,86 +75,85 @@ import RunLlo from "./doclive/runLlo.vue"; |
|
|
import AdHoc from "./doclive/AdhocView.vue"; |
|
|
import AdHoc from "./doclive/AdhocView.vue"; |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
name: 'DocLive', |
|
|
name: "DocLive", |
|
|
props: { |
|
|
props: {}, |
|
|
}, |
|
|
|
|
|
components: { |
|
|
components: { |
|
|
RunLlo, |
|
|
RunLlo, |
|
|
AdHoc |
|
|
AdHoc, |
|
|
}, |
|
|
}, |
|
|
data () { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
loading: false, |
|
|
loading: false, |
|
|
showhistory : 0, |
|
|
showhistory: 0, |
|
|
productIndex: 1, |
|
|
productIndex: 1, |
|
|
showmenou: 1, |
|
|
showmenou: 1, |
|
|
columnviewdefault : 0, |
|
|
columnviewdefault: 0, |
|
|
columncodedefault : 0, |
|
|
columncodedefault: 0, |
|
|
columnview : 'col-7 order-first', |
|
|
columnview: "col-7 order-first", |
|
|
columncode : 'col-5 order-last', |
|
|
columncode: "col-5 order-last", |
|
|
tutorMenou: 'student' |
|
|
tutorMenou: "student", |
|
|
} |
|
|
}; |
|
|
}, |
|
|
|
|
|
created: function () { |
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
created: function() {}, |
|
|
mounted() { |
|
|
mounted() { |
|
|
this.$root.$on('LLOshowmenounotebooks', () => { |
|
|
this.$root.$on("LLOshowmenounotebooks", () => { |
|
|
this.showmenou = 1 |
|
|
this.showmenou = 1; |
|
|
}), |
|
|
}), |
|
|
this.$root.$on('lloshowchallengehistory', (llo,active) => { |
|
|
this.$root.$on("lloshowchallengehistory", (llo, active) => { |
|
|
this.showhistory = 1 |
|
|
this.showhistory = 1; |
|
|
}) |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
beforeDestroy () { |
|
|
beforeDestroy() { |
|
|
this.$root.$off('LLOshowmenounotebooks'), |
|
|
this.$root.$off("LLOshowmenounotebooks"), |
|
|
this.$root.$off('lloshowchallengehistory') // working |
|
|
this.$root.$off("lloshowchallengehistory"); // working |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
fullscreen(action){ |
|
|
fullscreen(action) { |
|
|
if(action == 'max'){ |
|
|
if (action == "max") { |
|
|
this.columnview = 'col-11 order-first' |
|
|
this.columnview = "col-11 order-first"; |
|
|
this.columncode = 'col-1 order-last' |
|
|
this.columncode = "col-1 order-last"; |
|
|
this.columnviewdefault = 1 |
|
|
this.columnviewdefault = 1; |
|
|
this.columncodedefault = 0 |
|
|
this.columncodedefault = 0; |
|
|
//set height iframe |
|
|
//set height iframe |
|
|
this.$root.$emit('LLOresizemenounotebooks','max') |
|
|
this.$root.$emit("LLOresizemenounotebooks", "max"); |
|
|
console.log(this.columnview) |
|
|
console.log(this.columnview); |
|
|
} |
|
|
} else if (action == "min") { |
|
|
else if(action == 'min'){ |
|
|
this.columnview = "col-7 order-first"; |
|
|
this.columnview = 'col-7 order-first' |
|
|
this.columncode = "col-5 order-last"; |
|
|
this.columncode = 'col-5 order-last' |
|
|
this.columnviewdefault = 0; |
|
|
this.columnviewdefault = 0 |
|
|
this.columncodedefault = 1; |
|
|
this.columncodedefault = 1 |
|
|
|
|
|
//set height iframe |
|
|
//set height iframe |
|
|
this.$root.$emit('LLOresizemenounotebooks','min') |
|
|
this.$root.$emit("LLOresizemenounotebooks", "min"); |
|
|
console.log(this.columnview) |
|
|
console.log(this.columnview); |
|
|
} |
|
|
} else if (action == "codemax") { |
|
|
else if(action == 'codemax'){ |
|
|
this.columnview = "col-1 order-first"; |
|
|
this.columnview = 'col-1 order-first' |
|
|
this.columncode = "col-11 order-last"; |
|
|
this.columncode = 'col-11 order-last' |
|
|
this.columnviewdefault = 0; |
|
|
this.columnviewdefault = 0 |
|
|
this.columncodedefault = 1; |
|
|
this.columncodedefault = 1 |
|
|
console.log(this.columnview); |
|
|
console.log(this.columnview) |
|
|
} else if (action == "codemin") { |
|
|
} |
|
|
this.columnview = "col-7 order-first"; |
|
|
else if(action == 'codemin'){ |
|
|
this.columncode = "col-5 order-last"; |
|
|
this.columnview = 'col-7 order-first' |
|
|
this.columnviewdefault = 1; |
|
|
this.columncode = 'col-5 order-last' |
|
|
this.columncodedefault = 0; |
|
|
this.columnviewdefault = 1 |
|
|
this.$root.$emit("LLOresizemenounotebooks", "min"); |
|
|
this.columncodedefault = 0 |
|
|
console.log(this.columnview); |
|
|
this.$root.$emit('LLOresizemenounotebooks','min') |
|
|
|
|
|
console.log(this.columnview) |
|
|
|
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
async onAction (action) { |
|
|
async onAction(action) { |
|
|
this.tutorMenou='tutor' |
|
|
this.tutorMenou = "tutor"; |
|
|
//this.tutorMenou='student' |
|
|
//this.tutorMenou='student' |
|
|
} |
|
|
}, |
|
|
} |
|
|
}, |
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<!-- Add "scoped" attribute to limit CSS to this component only --> |
|
|
<!-- Add "scoped" attribute to limit CSS to this component only --> |
|
|
<style scoped> |
|
|
<style scoped> |
|
|
|
|
|
.col-7 { |
|
|
|
|
|
max-width: 48%; |
|
|
|
|
|
} |
|
|
|
|
|
.col-5 { |
|
|
|
|
|
max-width: 50%; |
|
|
|
|
|
} |
|
|
</style> |
|
|
</style> |
|
|