スプライトの仕様

  • スプライトの作成者,およびスタイルは各ページのsprites.datへ保存.sprites.datはStorableによる以下の%hashのダンプ
    • $hash{‘sprite_id’}{‘style’} = “left: xxx; top: xxx; width: xxx; height: xxx; z-index: xxx;”;
    • $hash{‘sprite_id’}{‘author_id’} = “public” or “admin” or “$userid”;
    • $hash{‘sprite_id’}{‘public_password’} = crypt($password);
      “public” ユーザの場合の削除,編集用パスワード
    • $hash{‘sprite_id’}{‘created_time’} = $time; #ページ作成日
      ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst) = localtime(time);
      $time = sprintf(“%04d%02d%02d%02d%02d%02d”, $year+1900, $mon+1, $mday, $hour, $min, $sec);
    • $hash{‘sprite_id’}{‘modified_time’} = $time; #ページ修正日
      ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst) = localtime(time);
      $time = sprintf(“%04d%02d%02d%02d%02d%02d”, $year+1900, $mon+1, $mday, $hour, $min, $sec);
  • 要素の中身(innerHTML)は $sprite_id.spr ファイルへ保存

疏水太郎