guacamole-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "@EVE0S" <one...@eve0s.com>
Subject RE: Re: UserName in Guacamole Extension
Date Mon, 16 Oct 2017 22:15:47 GMT
Oups. There were a space and a quote from a bad paste…
 
The corrected line.
 
--------
 
<div id="USERNAMEDIV" class="menu-title">{{menuTitle}}</div>

 

 

De : @eve0s [mailto:onebox@eve0s.com] 
Envoyé : 16 octobre 2017 16:44
À : user@guacamole.apache.org
Objet : RE: Re: UserName in Guacamole Extension

 

·         Replace content of menu-dropdown to add an ID on the username DIV

 

------------------------

 

<meta name="replace" content=".menu-dropdown">

<div class="menu-dropdown" ng-class="{open: menuShown}"
ng-click="toggleMenu()">

    <div id=" USERNAMEDIV'" class="menu-title">{{menuTitle}}</div>

    <div class="menu-indicator"></div>

 

    <!-- Menu contents -->

    <div class="menu-contents" ng-transclude></div>

</div>

------------------------

 

·         Then you can access this variable by jquery. 

 

------------------------

 

$('#USERNAMEDIV').html()

------------------------

 

 

·         Don’t forget that all variable used on the client side can be
hack.  You shouldn't use those variable for security.

 

 


Mime
View raw message