.progress4 {

        position: relative;

        width: 100px;

        height: 100px;

    }

    

    .progress4:hover:after {

        background: #333;

        background: rgba(0,0,0,.8);

        border-radius: 5px;

        bottom: 26px;

        color: #fff;

        content: attr(data-tooltip);

        left: 20%;

        padding: 5px 15px;

        position: absolute;

        z-index: 98;

        width: 300px;

        white-space: pre-line;

        text-align:left;

        keep-all: break-all;

        margin-left: -250px; 

    }

    

    .progress4:hover:before {

        border: solid;

        border-color: #333 transparent;

        border-width: 6px 6px 0 6px;

        bottom: 20px;

        content: "";

        left: 50%;

        position: absolute;

        z-index: 99;

    }




<span style="color:#ffffff" data-html="true" class="progress3" 

data-tooltip="정상:

국가 전력수급 현황

- 500만KW 이상 ~ 50000만KW 이하

빌딩내 전력수급 현황

- 500KW 이상 ~ 50000KW 이하">정상</span>

                 var tmpVar = {};

                angular.copy($scope.query, tmpVar);

                tmpVar.energyGroupId = obj.energyGroupId;

'angular' 카테고리의 다른 글

Daterange picker  (0) 2017.06.30
sample  (0) 2017.06.28
visual studio code angular intellisense  (0) 2017.06.25
Json 바인딩  (0) 2017.03.01
ngModel 과 양방향 바인딩  (0) 2017.02.25

<if test='energyGroupList != null and energyGroupList != ""'>

AND X.M_ENERGY_GROUP_ID IN <foreach item="item" index="index" collection="energyGroupList" open="(" separator="," close=")">#{item}</foreach> 

</if>

function tableToExcel(table, fileName, sheet){

 var uri = 'data:application/vnd.ms-excel;base64,'

   , template = '<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><head><!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>{worksheet}</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--><meta http-equiv="content-type" content="text/plain; charset=UTF-8"/></head><body><table border=1>{table}</table></body></html>'

   , base64 = function(s) { return window.btoa(unescape(encodeURIComponent(s))) }

   , format = function(s, c) { return s.replace(/{(\w+)}/g, function(m, p) { return c[p]; }) }

   

var ctx = {worksheet: sheet || 'Worksheet', table: $("#" + table).html()}

  var link = document.createElement("a");

  link.download = fileName + ".xls";

  link.href = uri + base64(format(template, ctx));

  link.click();

}

'javascript' 카테고리의 다른 글

json stringify  (0) 2017.11.18
더미 데이타 만들기  (0) 2017.09.13
promise  (0) 2017.03.12
json data roop  (0) 2012.02.29
DOM  (0) 2012.02.17

$.when(

        $.each(res, function(key, value){

        console.log(key + " : " + value);

        row[key] = value;

        })

    ).then(function(){

    $scope.data.totalPrice.push(row);

    });

'Jquery' 카테고리의 다른 글

stringfy  (0) 2012.02.03
jQuery Ajax로 ASP.NET과 연동하는 방법  (0) 2011.11.25
드롭다운리스트의 텍스트와 값 가져오기  (0) 2011.11.25
split 이렇게도 쓰넹  (0) 2011.11.25
체크박스 전체선택 및 해제  (0) 2011.11.25

+ Recent posts